View Issue Details

IDProjectCategoryView StatusLast Update
0001562XdebugStacktracespublic2023-11-30 14:49
Reportermpociot Assigned Toderick  
Status closedResolutionfixed 
Target Version3.3devFixed in Version3.3.0 
Summary0001562: Add 'local_vars' option to 'xdebug_get_function_stack' to include variables for each st

It 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


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 =>
2021-08-07 10:05 derick Status new => acknowledged
2021-08-07 10:05 derick Target Version => 3.2dev
2022-06-06 15:27 derick Target Version 3.2dev => 3.3dev
2023-08-11 13:24 derick Summary Retrieve local variables from stack trace => Add 'local_vars' option to 'xdebug_get_function_stack' to include variables for each st
2023-08-11 13:25 derick Note Added: 0006631
2023-08-24 17:01 derick Assigned To => derick
2023-08-24 17:01 derick Status acknowledged => closed
2023-08-24 17:01 derick Resolution open => fixed
2023-08-24 17:01 derick Fixed in Version => 3.3dev
2023-09-05 17:46 derick Fixed in Version 3.3dev => 3.3.0alpha1
2023-11-30 14:49 derick Fixed in Version 3.3.0alpha1 => 3.3.0