View Issue Details

IDProjectCategoryView StatusLast Update
0001562XdebugStacktracespublic2021-05-05 15:41
Reportermpociot Assigned To 
Status newResolutionopen 
Summary0001562: Retrieve local variables from stack trace
DescriptionIt would be great if Xdebug would have the ability to return the local variables from a stack trace frame.
The use case I have in mind:

I setup a custom exception handler to handle errors in my application. When I retrieve an exception, I want to be able to call `xdebug_get_function_stack();` and retrieve the stack trace. This stack trace should then contain the local variables for each frame in the stacktrace.

So you can think of it as something like `show_local_vars` but not only for the top-most scope, but for all scopes in the stack trace. And the ability to retrieve these values with a function call.
TagsNo tags attached.
Operating System
PHP Version7.2.0-7.2.4


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2018-07-12 09:48 mpociot New Issue
2019-10-17 12:31 derick Target Version => 3.0dev
2020-03-12 16:32 derick Severity minor => feature
2020-03-12 16:32 derick Category Feature/Change request => Stacktraces
2020-11-18 15:33 derick Target Version 3.0dev => 3.1dev
2021-05-05 15:41 derick Target Version 3.1dev =>