View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002275 | Xdebug | Step Debugging | public | 2024-06-17 23:35 | 2024-08-07 14:20 |
Reporter | tefxacn | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.3.2 | ||||
Summary | 0002275: 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
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()); results in | ||||
Additional Information | When using xdebug.start_with_request=trigger the reproducer works correctly and I get: | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 8.2.0-8.2.9 | ||||
|
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? |
|
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, |
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 |