View Issue Details

IDProjectCategoryView StatusLast Update
0001901XdebugStacktracespublic2020-11-28 17:00
Reporterderick Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version3.0.0RC1 
Target Version3.0devFixed in Version3.0.1 
Summary0001901: Stack traces are shown (with a broken time) when Xdebug's mode includes 'debug' but not 'develop' or 'trace'
Description

When running in 'debug' mode, stack traces are still being shown. Additionally, because the time index has not been set, the stack traces contain useless information:

<code>
$ php -dxdebug.mode=debug -dxdebug.start_with_request=yes -r 'function f() { usleep(50000); trigger_error("test"); } f();'
Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(

Notice: test in Command line code on line 1

Call Stack:
16840162259.3631 424472 1. {main}() Command line code:0
16840162259.3631 424472 2. f() Command line code:1
16840162259.3631 424472 3. trigger_error() Command line code:1
</code>

Steps To Reproduce

php -dxdebug.mode=debug -dxdebug.start_with_request=yes -r 'function f() { usleep(50000); trigger_error("test"); } f();'

TagsNo tags attached.
Operating System
PHP Version8.0.0-8.0.4

Activities