View Issue Details

IDProjectCategoryView StatusLast Update
0002275XdebugStep Debuggingpublic2024-06-18 08:45
Reportertefxacn Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version3.3.2 
Summary0002275: xdebug.start_with_request=no does not allow starting step debugging with xdebug_break() despite docs saying so
Description

https://xdebug.org/docs/all_settings#start_with_request

no
The functionality does not get activated when the request starts.
You can still start ... Step Debugging with xdebug_break(),

However, in practice this does not work (but only works when it's set to e.g. "trigger")

Steps To Reproduce

xdebug.start_with_request=no


var_dump(xdebug_is_debugger_active());
xdebug_break();
var_dump(xdebug_is_debugger_active());

results in
bool(false)
bool(false)

Additional Information

When using xdebug.start_with_request=trigger the reproducer works correctly and I get:
bool(false)
bool(true)

TagsNo tags attached.
Operating System
PHP Version8.2.0-8.2.9

Activities

tefxacn

2024-06-18 00:54

reporter   ~0006980

When looking at https://xdebug.org/docs/all_functions#xdebug_break it says that it's supposed to only work on "trigger"? Possibly this is only an issue with invalid documentation?

Issue History

Date Modified Username Field Change
2024-06-17 23:35 tefxacn New Issue
2024-06-18 00:54 tefxacn Note Added: 0006980