View Issue Details

IDProjectCategoryView StatusLast Update
0000894XdebugUncategorizedpublic2012-11-11 13:01
Reporternorbi771 Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
PlatformWindowsOSWindows 7OS Version64bit
Product Version2.2.1 
Summary0000894: xdebug is always started without XDEBUG_SESSION_START
Description

It seems that debug session is started every time regardless of XDEBUG_SESSION_START in URL.

Steps To Reproduce
  1. Open netbeans
  2. In project configuration, advanced web configuration set "Do Not Open Web Browser" and "Run as local web site"
  3. Click on "debug main project in Netbeans
  4. Insert breakpoint in test file
  5. Open web browser (without XDEBUG_SESSION_START in your URL)
  6. Netbeans will stop at breakpoint (and it shouldn't as I understand it until XDEBUG_SESSION_START is set)
Additional Information

Recently reinstalled my notebook. Installed Win7 Pro, Apache 2.4, Php 5.2.17, Netbeans 7.2, firefox 16.

Until the reinstall I was using Netbeans 7.1, PHP 5.2.5 with php_xdebug-2.1.2-5.2-vc6.dll, Apache 2.2 and firefox addon easyXdebug to turn on debugging on demand. My projects were set to "Do not open Web browser", and this setting let me turn on debugging in netbeans but do real debugging only when needed by clicking on easyXdebug icon in web browser. The easyXdebug seemed to simply send XDEBUG_SESSION_START=netbeans-xdebug.

My computer crashed and I reinstalled it with the setup as above but for some reason I was unable to have xdebug running stable.

Then I installed Netbeans 7.2, PHP 5.2.17 with php_xdebug-2.2.1-5.2-vc9.dll and apache 2.4
It seems that xdebug is working fine now, but if I press "Debug main project in netbeans" I am no longer able to control when the debug process is started. It seems that it is started always, as soon as I turn on debugging in Netbeans and does not rely on setting XDEBUG_SESSION_START in url.

I turned on firebug and I can always see that XDEBUG_SESSION cookie is always set and I think it shouldn't be.

I am not sure if it is XDebug issue or Netbeans.

My settings (tried various configurations):

php.ini:
zend_extension_ts = "c:\PHP5\php_xdebug-2.2.1-5.2-vc9.dll"

xdebug.default_enable=0
xdebug.remote_enable=On
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req

xdebug.remote_autostart = 0
xdebug.idekey=netbeans-xdebug
xdebug.remote_log = "d:\tmp\xdebug\xdebug.log"

Maybe I have wrong setup, but I can't find what is wrong.
Thanks for looking into that issue.

TagsNo tags attached.
Operating SystemWindows 7 64 bit
PHP Version5.2.10

Activities

norbi771

2012-10-18 10:25

reporter   ~0002363

Also checked without netbeans running.
The cookie XDEBUG_SESSION is always set on every page reload.
If I stop the xdebug session by URL ?XDEBUG_SESSION_STOP=netbens-xdebug then cookie is removed, but next time any page is loaded the cookie is present again.
I think, in that case, it is not netbeans related but XDEBUG only.

derick

2012-10-21 19:08

administrator   ~0002365

This is exactly how it is supposed to work. It allows for easy debugging of forms.

norbi771

2012-10-22 07:21

reporter   ~0002372

Thank you for your answer.
I have a question, because picture is not clear to me. I hope you don't mind I am asking through mantis (and reopening the issue). If it is not right place to ask please direct me to the correct one.

The question is:

What is xdebug.remote_autostart then for?
As I understood until now, if this option was set to 1, then one every page request the debugging was auto started regardless of XDEBUG_SESSION_START. Setting this option to 0 let me have PHP configured with XDEBUG, but real debugging is activated when I turn it on via XDEBUG_SESSION_START.

Reading your answer I got the impression that xdebug.remote_autostart is ignored.

derick

2012-11-11 13:01

administrator   ~0002381

It works exactly as you describe.

Issue History

Date Modified Username Field Change
2012-10-17 17:05 norbi771 New Issue
2012-10-18 10:25 norbi771 Note Added: 0002363
2012-10-21 19:08 derick Note Added: 0002365
2012-10-21 19:08 derick Status new => resolved
2012-10-21 19:08 derick Resolution open => no change required
2012-10-21 19:08 derick Assigned To => derick
2012-10-22 07:21 norbi771 Note Added: 0002372
2012-10-22 07:21 norbi771 Status resolved => feedback
2012-10-22 07:21 norbi771 Resolution no change required => reopened
2012-11-11 13:01 derick Note Added: 0002381
2012-11-11 13:01 derick Status feedback => resolved
2012-11-11 13:01 derick Resolution reopened => no change required
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