# Local bindings from stack trace?

**URL:** <https://discourse.julialang.org/t/local-bindings-from-stack-trace/104727>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 8, 2023, 8:01am UTC](https://discourse.julialang.org/t/local-bindings-from-stack-trace/104727 "2023-10-08T08:01:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bertschi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bertschi/32/33462_2.png) [@bertschi](https://discourse.julialang.org/u/bertschi)\
**Post date:** [October 8, 2023, 8:01am UTC](https://discourse.julialang.org/t/local-bindings-from-stack-trace/104727/1 "2023-10-08T08:01:18Z")

</div>

Is it possible to get/recover the local variable bindings in a specific stack frame from a `StackTrace`?

I know there is `Base.@locals`, but this just stores the local bindings at its specific call site. Thus, it doesn’t provide a way to get those bindings after the fact, e.g., when walking a stack trace.
