I have connected my vscode debugger to my mendix debugger by following the steps listed here: https://forum.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://forum.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
Kyle Francq
1 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.