Community
Participate
Working Groups
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Build Identifier: 20090920-1017 I am remote debugging a php web page using XAMPP and XDebug. Whenever I close the debugging session another web browser windows pops up containing the single message "DEBUG SESSION ENDED". There should be a way to hide/prevent this window. Its a minor thing, but annoying to have to close it every time I end a debug session. I searched the bug list but did not see that anyone has reported this. I know that other people would like this to be optional as well according to this post on the eclipse forums: http://www.eclipse.org/forums/index.php?S=8f62f62ae18f9e02701bddcb5939220b&t=msg&th=156209 I am reporting this because is did not appear that anyone else has. Reproducible: Always Steps to Reproduce: 1.Start remote debugging session. 2.Stop remote debugging session. 3.Witness extra browser window popup with message.
I suffer the same results, I'm on Windows XP. XDebug 2.0.3+, running as zend_extension. Several other sites suggests this is the result of the changing xdebug protocol from v2.0.2>v2.0.3 and thereafter. Debugger feels buggy with 2.0.3+. My server won't install <2.0.3 because of some zend-errors when install (pecl install xdebug, and adding zend_extension and others to my php.ini).
This has already been now on Ubuntu 9.10, PHP 5.2.10, Eclipse 3.5 PDT with Xdebug v2.0.4.
The URL has to be sent through Firefox in order to get the cookie removed. The Eclipse API that is used to talk to the browser (whichever one is registered in the eclipse preferences: internal, external etc) sends the URL and with firefox it creates a new tab. As far as I know there is no way round this. If you disconnect rather than stop a debug session, then the URL is not sent however the debug cookie will still remain in firefox. You can use alternative add-ons to firefox to manage the cookie. If you use the internal browser on windows then you can avoid this problem. Sorry but I don't see any other alternative to the problem at this time.
Patch proposal: https://git.eclipse.org/r/40063
Merged: https://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=3b87464fbcf5bd0343a9a91b06954cf03f44d653 Thank you Bartek!
Verified. Closing
I just upgraded to PDT 3.4 and can confirm that this is solved. Unfortunately, when I reload the page debugged after stopping the debugger, the debugger automatically starts again, as might be expected from David's comment. Should I open a new ticket to track this?
(In reply to Filipus Klutiero from comment #7) > I just upgraded to PDT 3.4 and can confirm that this is solved. > Unfortunately, when I reload the page debugged after stopping the debugger, > the debugger automatically starts again, as might be expected from David's > comment. > > Should I open a new ticket to track this? We reverted this changes: https://bugs.eclipse.org/bugs/show_bug.cgi?id=460836
Thank you Dawid. I suppose this ticket should be reopened then.
(In reply to Filipus Klutiero from comment #9) > Thank you Dawid. I suppose this ticket should be reopened then. Reopened for now, but we probably should mark this bug as WONTFIX.
Thank you. I am not knowledgeable about debugger internals, but I do not think this is really unfixable. Xdebug should be able to ignore certain cookies. Of course, Eclipse would need to be able to tell Xdebug to ignore those, so the protocol needs to provide for that. The documentation of Xdebug remote debugging at http://xdebug.org/docs/remote is incomplete, so there may be a way to do that already, but I do not see it.