Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

netbeans not stopping on breakpoint

Tags:

php

ide

netbeans

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
like image 212
Chris Avatar asked Dec 28 '11 17:12

Chris


People also ask

Why are my breakpoints not working?

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.

How do you stop breakpoints?

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.

Why does Visual Studio not stop at breakpoint?

This problem occurs because ASP.NET debugging isn't enabled on the application.

How do breakpoints work in Netbeans?

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.


1 Answers

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).

like image 189
Jan Pešek Avatar answered Oct 08 '22 00:10

Jan Pešek