View Issue Details

IDProjectCategoryView StatusLast Update
0002367XdebugStep Debuggingpublic2025-12-04 14:50
Reporterderick Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Target Version3.5devFixed in Version3.5.0 
Summary0002367: Debugger should not break on return out of include files when return value debugger is enabled
Description

When stepping (next) the debugger will stop at the implicit return at the end of each (included) file too. We should skip that.

This is quite common for including class files, which (besides) the class will generate an op_array, that consists of three opcodes: NOP, EXT_STMT, and RETURN.

If more than one class is loaded, or when classes include static members, then there will be more NOPs. Both cases should be handled.

TagsNo tags attached.
Operating System
PHP Version8.3.5-8.3.9

Activities