I am running PHP 5.3.2, Apache 2.2.14 and xdebug 2.2.0rc1 on my Ubuntu 10.04 laptop, and I am trying to set up debugging on localhost in Netbeans 6.8.
My problem is that breakpoints I set in Netbeans are being ignored. Otherwise it it seems to work correctly. For example, I get pretty var_dumps, xdebug traces, xdebug remote logs and I can also tick the box so that it breaks on the first line of the PHP script.
Based on other websites and SO questions (e.g. SO1, SO2, SO3) I've checked all of the following:
- That the php.ini file I am editing is being used
- That xdebug is loaded as zend_extension=/full/path/to/xdebug.so (not extension=xdebug.so)
- Thread safety is disabled in PHP and I am using the non-thread safe version of xdebug
That the path to the breakpoints is correct in the xdebug remote log (see code snippet below this list, the paths in that snippet and others not shown are correct)
<- breakpoint_set -i 1014 -t line -s enabled -f file:///var/www/mockup/test.php -n 8 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="1014" state="enabled" id="135610002"></response>
Manual calls to xdebug_break() work
I have also tried to set up the server path and project path in the Netbeans project properties because it feels like that could be the problem, but it hasn't helped. Currently I have server path as /var/www/mockup
and project path as /common/rsync/Dropbox/active-archives/code/Locus/mockup
However, /var/www/mockup
is a symlink to the longer path anyway so I don't even know if this is necessary? It does not work whether I specify the path mapping or not...