How to get all local variables at given frame ? #78
|
Is there a possibility (and how it can be achieved) to get not only functions parameters, but also all local variables (or only selected subset of them) for given frame ? |
Answered by
jeremy-rifkin
Jan 17, 2024
Replies: 1 comment 2 replies
|
Hi @mirekh68, in theory this is possible. It might be a little outside the scope of a stacktrace library though. Dwarf and pdb debug symbols should have information on local variables. I'm not sure how useful local variables would be unless their values were also displayed, which is also in theory possible to get based on debug symbols but I expect implementing that would be quite complicated. |
2 replies
Answer selected by
jeremy-rifkin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @mirekh68, in theory this is possible. It might be a little outside the scope of a stacktrace library though. Dwarf and pdb debug symbols should have information on local variables. I'm not sure how useful local variables would be unless their values were also displayed, which is also in theory possible to get based on debug symbols but I expect implementing that would be quite complicated.