Bug 293227 - Closing remoted debug session with XDebug causes another browser windows to popup with the message DEBUG SESSION ENDED.
Summary: Closing remoted debug session with XDebug causes another browser windows to p...
Status: REOPENED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: PHP Debug CLA
QA Contact: Sylvia Tancheva CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-23 19:31 EDT by ingle.john.w CLA
Modified: 2020-05-14 10:16 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ingle.john.w CLA 2009-10-23 19:31:38 EDT
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.
Comment 1 Robert de Wilde CLA 2010-01-28 12:58:19 EST
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).
Comment 2 Adam Solymos CLA 2010-04-29 09:50:16 EDT
This has already been now on Ubuntu 9.10, PHP 5.2.10, Eclipse 3.5 PDT with Xdebug v2.0.4.
Comment 3 David Kelsey CLA 2010-04-29 11:17:33 EDT
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.
Comment 4 Bartlomiej Laczkowski CLA 2015-01-21 13:58:41 EST
Patch proposal: https://git.eclipse.org/r/40063
Comment 6 Sylvia Tancheva CLA 2015-02-05 09:17:41 EST
Verified. Closing
Comment 7 Nobody - feel free to take it CLA 2015-04-13 10:26:03 EDT
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?
Comment 8 Dawid Pakula CLA 2015-04-13 16:14:34 EDT
(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
Comment 9 Nobody - feel free to take it CLA 2015-04-14 09:22:54 EDT
Thank you Dawid. I suppose this ticket should be reopened then.
Comment 10 Dawid Pakula CLA 2015-04-15 16:57:17 EDT
(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.
Comment 11 Nobody - feel free to take it CLA 2015-04-19 12:44:25 EDT
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.