I have xdebug running but it doesn't matter where I put my break point it never stops.
php.ini
[xdebug]
zend_extension_ts = c:\wamp\bin\php\php5.2.8\ext\php_xdebug-2.1.2-5.2-vc6.dll
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=Chris-Pc
xdebug.remote_port=9000
If a source file has changed and the source no longer matches the code you're debugging, the debugger won't set breakpoints in the code by default. Normally, this problem happens when a source file is changed, but the source code wasn't rebuilt. To fix this issue, rebuild the project.
To Disable a Single Breakpoint In the Query Editor window, right-click the breakpoint, and then click Disable Breakpoint. In the Breakpoints window, clear the check box to the left of the breakpoint.
This problem occurs because ASP.NET debugging isn't enabled on the application.
Start the ide and open the file that contains the source code that you want to debug. Set a breakpoint at each line where you want the debugger to pause. To set a breakpoint, place the cursor at the beginning of a line and press Ctrl-F8/⌘-F8 or choose Debug > Toggle Line Breakpoint.
One more tip that's not mentioned here: make sure that you have your web root directory set correctly.
Go to File -> Project properties -> Sources -> Web root -> Browse and select your actual web root directory.
My configuration is Kubuntu 15.04, PhP 5.5 and I'm developing CakePhP application and I had to set my webroot directory to /app/webroot [or /app/View/Theme/webroot in case you're using themes]. Without this setting, xdebug was ignoring breakpoints, although otherwise working (and actually stopping on the first line of the index.php file).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With