View Issue Details

IDProjectCategoryView StatusLast Update
0000911XdebugUncategorizedpublic2013-03-09 21:53
Reporterrasta Assigned Toderick  
PriorityhighSeverityblockReproducibilityalways
Status resolvedResolutionunable to reproduce 
PlatformAppleOSMacOsOS Version10.8.2
Product Version2.2.1 
Summary0000911: Cannot debug console scripts with Netbeans
Description

Debugging in browser works fine, so netbeans and xdebug are configured correctly.

But I can't debug when running cli scripts from terminal. I do everything as usual:
1) set the XDEBUG_CONFIG variable
2) set break point in netbeans in the script i want to debug
3) run the script from terminal

expected result:
netbeans should be showing the debugged script on the line marked with the break point and it should be possible to step through the code using the function keys or ide buttons

my result:
the script execution doesn't stop on the break point and the script runs to the end

I became this result with the netbeans debug option 'stop at first line' unchecked.
When I check the option, the sctipt execution actually stops at the first line of the script, and I can step through the code using 'Step Over' and 'Step Into', but when I click on 'Continue (F5)' the code execution won't stop on my first breakpoint.

This behaviour is in my opinion really weird.

Steps To Reproduce

1) set a breakpoint on any simple php script
2) start netbeans project debugging
3) in terminal type: export XDEBUG_CONFIG="idekey=netbeans-xdebug"
4) from terminal, run the script like this: php script.php

Additional Information

My PHP, Apache and Xdebug are installed via macports, with no modifications, except the xdebug configuration in php.ini:

xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.cli_color=1

nothing else

i hope it's going to be reproducible.
I don't know if the same thing happens on other platforms or to other people using macports.

TagsNo tags attached.
Operating SystemMac Os 10.8.2
PHP Version5.4.10-5.4.14

Activities

derick

2013-03-09 21:52

administrator   ~0002436

This is likely an issue with netbeans or your configuration. I can not support every IDE, so please seek your help with the netbeans forums: https://twitter.com/netbeans/status/291948017639096322

Issue History

Date Modified Username Field Change
2012-12-29 19:05 rasta New Issue
2013-03-09 21:52 derick Note Added: 0002436
2013-03-09 21:53 derick Status new => resolved
2013-03-09 21:53 derick Resolution open => unable to reproduce
2013-03-09 21:53 derick Assigned To => derick
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized