View Issue Details

IDProjectCategoryView StatusLast Update
0002275XdebugStep Debuggingpublic2024-08-07 14:20
Reportertefxacn Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
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?

derick

2024-08-07 14:20

administrator   ~0007040

This was indeed a documentation issue, which I have now fixed in https://github.com/xdebug/xdebug.org/commit/737f2d58f123b94e7aff4dd89bd961ec0ad94eff — there was also already a test case for this: https://github.com/xdebug/xdebug/blob/master/tests/debugger/start_with_request_never_break.phpt

thanks for the report!

cheers,
Derick

Issue History

Date Modified Username Field Change
2024-06-17 23:35 tefxacn New Issue
2024-06-18 00:54 tefxacn Note Added: 0006980
2024-08-07 14:20 derick Assigned To => derick
2024-08-07 14:20 derick Status new => resolved
2024-08-07 14:20 derick Resolution open => fixed
2024-08-07 14:20 derick Note Added: 0007040