View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001410||Xdebug||Stacktraces||public||2017-03-28 11:16||2017-03-29 08:27|
|Target Version||Fixed in Version|
|Summary||0001410: Debug session does not end if breakpoints are set in __debugInfo() magic methods or any methods called by them.|
|Description||XDebug generally works well for debugging stacks called by a __debugInfo magic method, but once the method has completed execution the debug dession will remain open until the process is stopped manually.|
|Steps To Reproduce||Run the attached script with breakpoints on lines 13 and 26.|
|Additional Information||Affects all methods with breakpoints in a stack called by __debugInfo(). It does not matter whether __debugInfo() returns a value or not.|
|Tags||No tags attached.|
|Operating System||Linux 4.8.0-44-generic; Client - Mint Serena , Host - Debian Jessie|
test.php (366 bytes)
Thanks for the report.
I have two questions:
1. Could you please add a remote debugging log as well to go with this script? There is information at https://xdebug.org/support.php#remote on how to do that.
2. Which IDE are you using?
IDE is PHPStorm.
I've been trying to grab a log for you - my current setup uses a Docker container (should maybe have mentioned that in the report, sorry) based on the PHP:7.0-Apache image from the Docker repos and for whatever reason I can't get XDebug to output a log file anywhere. Permissions are definitely correct, I enabled the Profiler to test and it's outputting to the desired directory without issue.
I'll try it out on proper test server later this evening to try and replicate the problem and get you a proper log.
xdebug.log (13,145 bytes)
Okay, I've uploaded a log file from a test server. XDebug version is 2.5.0, PHP Version 7.0.14-1~dotdeb+8.1, Host OS is Debian 8 with kernel 3.16.0-4-amd64.
I've added a line to the log file to indicate where I had to stop the process manually.
|2017-03-28 11:16||chrBrd||New Issue|
|2017-03-28 11:16||chrBrd||File Added: test.php|
|2017-03-28 12:02||derick||Note Added: 0004246|
|2017-03-28 12:02||derick||Assigned To||=> derick|
|2017-03-28 12:02||derick||Status||new => feedback|
|2017-03-28 15:45||chrBrd||Note Added: 0004247|
|2017-03-28 15:45||chrBrd||Status||feedback => assigned|
|2017-03-29 08:24||chrBrd||File Added: xdebug.log|
|2017-03-29 08:27||chrBrd||Note Added: 0004248|