Xdebug for the command line

To debug a command line PHP script, simply use this on the command line:

export XDEBUG_CONFIG="idekey=netbeans-xdebug"

And then start your NetBeans debugger without launching a web page and then run your script.

Leave a Reply

Your email address will not be published. Required fields are marked *