View Issue Details

IDProjectCategoryView StatusLast Update
0001410XdebugStacktracespublic2017-03-29 08:27
ReporterchrBrdAssigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
PlatformOSLinuxOS Version4.8.0-44-generic
Product Version2.5.1 
Target VersionFixed in Version 
Summary0001410: Debug session does not end if breakpoints are set in __debugInfo() magic methods or any methods called by them.
DescriptionXDebug 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 ReproduceRun the attached script with breakpoints on lines 13 and 26.
Additional InformationAffects all methods with breakpoints in a stack called by __debugInfo(). It does not matter whether __debugInfo() returns a value or not.
TagsNo tags attached.
Operating SystemLinux 4.8.0-44-generic; Client - Mint Serena , Host - Debian Jessie
PHP Version7.0.15-7.0.19

Activities

chrBrd

2017-03-28 11:16

reporter  

test.php (366 bytes)

derick

2017-03-28 12:02

administrator   ~0004246

Hi!

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?

cheers,
Derick

chrBrd

2017-03-28 15:45

reporter   ~0004247

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.

chrBrd

2017-03-29 08:24

reporter  

xdebug.log (13,145 bytes)

chrBrd

2017-03-29 08:27

reporter   ~0004248

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.

Issue History

Date Modified Username Field Change
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