Ast query from debugger #816
Unanswered
morgoth990
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After a breakpoint is triggered i'm reading the stacktrace using lua_getinfo on each level retriving locals and upVals (lua_getlocal and lua_getupvalue)
Having the name of the module, the line where the breakpoint stopped, the name of the locals/upVals, how can I make an ast query to understand if a local variable or an upVal is present at a Location?
My goal is to display a popup if the mouse is hovering a local or a upVal.
I see a function named findExprOrLocalAtPosition but i dont know how to check if the returned local isn't an homonym or how to check if is an upVal.
Beta Was this translation helpful? Give feedback.
All reactions