Enable xdebug logging
Posted April 8th, 2008 by ttownsend
How do I enable xdebug logging? The properties boxes for the solution and the project do not seem to include this on VS 2005 4494. I have searched the doc and the web site - only to find that this appears to be generally understood by everyone.


Enabling xDebug logging
For those who assumed that Jcx would tell you this, here is how to produce an xDebug log. Find the php.ini file that the system is using - right click your project name - choose properties - open the Debug folder - choose Advanced - the php.ini path is displayed.
Open php.ini and find [XDebug]. Add the following line to this section:
xdebug.remote_log="c:\xdebug.txt"
Point to any file you like BUT make sure it exists. The debugger will crash if it has any trouble opening the file. There may be some way to prevent this, but I resolved the issue by giving the thing an empty file to start with.
Now if I could just get breakpoints to work again. Beware the unneeded update.