Just wait until you learn that you can debug sql queries the same way in most rdbms admin tools.
post
replies:
Lol, I have my favorite file_put_contents line for debugging php, but being able to step through code would be great. What's your setup? Last time I tried I couldn't get xdebug working on win server + apache.
replies:
permalink
fedilink
source
parent
hideshow 2 child comments
I'm on Ubuntu, but from what I remember to get it working in my local environment I just:
- Installed the module.
- Added the following to the php.ini file:
[xdebug]
zend_extension=xdebug
xdebug.mode = debug
xdebug.start_with_request = yes
- Restarted the apache server.
- Installed the PHP Debug extension for Visual Studio Code.
And now I just hit F5 and select "Listen for Xdebug" and I'm ready to go.
all 6 comments