Inspect Local Variable VSCode Java Debugging

0
I have connected my vscode debugger to my mendix debugger by following the steps listed here: https://community.mendix.com/link/questions/107849 However, I cannot view local variables in a java action that I am trying to debug. What steps can I take to try and fix this? I saw another thread here: https://community.mendix.com/link/questions/100039 but that seemed to be a different issue as I am not running into a similar package issue.   Edit: When I try to use the Debug Console to manually System.out.println(Object) it says that {variable name} cannot be resolved to a variable.
asked
2 answers
3

You won’t be able to see local variables declared in a method (at least I’ve not worked out how to do that). Depending on your code, you could move them into the class or create a new class as object variables are visible. This is the approach I take.  

Hope this helps. 

answered
0

I tried the following and it worked as well, making arbitrary changes to the code. Then click this button and you'll see it. Give it a try.

image.png

answered