View Issue Details

IDProjectCategoryView StatusLast Update
0001721XdebugUsage problems (Wrong Results)public2020-01-12 16:06
ReportermlocatiAssigned To 
Status confirmedResolutionopen 
PlatformPCOSWindows 10OS Version1909
Product Version2.8.1 
Target Version3.0.0devFixed in Version 
Summary0001721: Unablt to stop debug session - XDEBUG_SESSION cookie not deleted
DescriptionI use Eclipse + PDT.

When starting a web debug session, PDT calls the website URL with an URL like this:

The server response contains this header:

Set-Cookie: XDEBUG_SESSION=ECLIPSE_DBGP; expires=Thu, 05-Dec-2019 01:56:03 GMT; Max-Age=43200; path=/

and I can do a step-by-step debugging in Eclipse.

When I stop the debugging session, PDT calls this URL:


In previous Xdebug versions I had no issues, but now the response to that second URL is:

HTTP/1.1 200 OK
Date: Wed, 04 Dec 2019 13:56:10 GMT
Server: Apache/2.4.37 (Win32) OpenSSL/1.1.1a PHP/7.4.0
X-Powered-By: PHP/7.4.0
Content-Length: 117
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8

Warning: Header may not contain NUL bytes in Unknown on line 0


And the XDEBUG_SESSION cookie is not deleted (so, the debug session remains active).
Operating System
PHP Version7.4.0-7.4.4



2019-12-04 14:13

reporter   ~0005193

PS; PHP version is actually 7.4.0, but it's not available in the dropdown list
PPS: the second URL (used to actually stop the debugging session) is


2020-01-12 16:06

administrator   ~0005211

I've fixed the warning through, and I can indeed reproduce your problem. For some reason, although Xdebug sets the cookie with PHPs internal php_setcookie function, it never makes it into the headers that are sent out. That's going to take more investigation.

However, I would recommend that instead of these two GET/POST parameters, you use one of the browser extensions to activate an Xdebug session instead: — that way, you can click on an icon in your browser without having to press "Go" in your IDE.

Issue History

Date Modified Username Field Change
2019-12-04 14:07 mlocati New Issue
2019-12-04 14:07 mlocati Tag Attached: XDEBUG_SESSION
2019-12-04 14:13 mlocati Note Added: 0005193
2020-01-12 16:06 derick Note Added: 0005211
2020-01-12 16:06 derick Status new => confirmed
2020-01-12 16:06 derick Target Version => 3.0.0dev
2020-01-12 16:06 derick PHP Version 7.4alpha => 7.4.0-7.4.4