View Issue Details

IDProjectCategoryView StatusLast Update
0001562XdebugFeature/Change requestpublic2018-07-12 09:48
ReportermpociotAssigned To 
Status newResolutionopen 
Product Version 
Target VersionFixed in Version 
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