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 ? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.