View Issue Details

IDProjectCategoryView StatusLast Update
0001410XdebugStacktracespublic2021-04-14 16:09
ReporterchrBrd Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
OSLinuxOS Version4.8.0-44-generic 
Product Version2.5.1 
Summary0001410: 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.

TagsNo tags attached.
Operating SystemLinux 4.8.0-44-generic; Client - Mint Serena , Host - Debian Jessie
PHP Version7.0.15-7.0.19

Activities

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: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.

derick

2021-03-17 09:38

administrator   ~0005767

Is this issue still relevant to you?

derick

2021-04-14 16:09

administrator   ~0005842

Closing this, as it is missing requested feedback.