Debugging WordPress PHP Code with Xdebug and VS Code
Debug WordPress with Xdebug and VS Code var_dump() and error_log() show one value at one moment. A step debugger stops the code on a line you choose and shows all variables, the call stack and the current hook, and lets you go on line by line. For WordPress, with its chains of hooks and filters,…