View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000959 | Xdebug | Uncategorized | public | 2013-07-05 09:31 | 2014-02-27 19:53 |
| Reporter | querdenker | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | no change required | ||
| Platform | Windows | OS | Windows 7 64bit | OS Version | Version 6.1.7601 |
| Product Version | 2.2.3 | ||||
| Summary | 0000959: Remote debugging: Client (xdebug) always tries to connect to server (IDE) | ||||
| Description | Running xampp 1.8.1 (Apache 2.4.3, PHP 5.4.7) on Win7 SP1 64bit. The remote debugging server is Jetbrains PhpStorm 6.0.3. The xdebug DDL I use is php_xdebug-2.2.3-5.4-vc9.dll. According to phpinfo(), the xdebug settings are xdebug.auto_trace Off Even though xdebug.remote_autostart is set to Off and I do not send XDEBUG_SESSION=xdebug or XDEBUG_SESSION_START=xdebug along (neither GET/POST/COOKIE), xdebug always responds Set-Cookie XDEBUG_SESSION=xdebug;[...] and tries to connect to a server (if a listening PhpStorm runs, it'll connect to that). If xdebug is designed to work this way (always starting a remote debugging session), then what is the purpose of the xdebug.remote_autostart setting? Furthermore, what's the purpose of all the GET/POST/COOKIE remote debug session start stuff, including browser extensions like easyXdebug (Firefox)? | ||||
| Steps To Reproduce |
| ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 5.4.7 | ||||
|
|
Can you check if the request headers contain a the cookie? If that's the case, your browser sends it. This could be because of a browser plugin that is activated. |
|
|
Alright, I guess you can just close this report. In order to resolve this, I screwed around with some xdebug settings in the php.ini file. When I changed the value of xdebug.idekey to "foobar", my browser kept receiving the cookie XDEBUG_SESSION=xdebug. So there had to be something that sets the idekey/session name outside of the php.ini. In the end, I found a system environment variable which I must have set a while ago to debug a PHP-CLI script or something. That variable was XDEBUG_CONFIG with the value idekey=xdebug remote_host=localhost. Once I removed that system variable and restarted Windows, xdebug remote debugging didn't start automatically any longer. |
|
|
I am glad to know that it works now! Closing this issue. |