How to hide variables from Java's JDI / Variable View?

Answered

I am instrumenting some classes and introducing some new local variables. Now, when the user places a breakpoint in the code, and execution is stopped, the newly introduced local variables can be seen inside Intellij IDEA's debugger window. How can I hide them?

 

Update: I've found this issue, but not sure if it is realated(it is for Javascript and I am looking for a programmatical solution not a UI based one)

0
1 comment

Hi, you probably need to setup your instrumenter so that it does not create debug mapping for the new local variables. If debug info is available in the class, debugger shows only variables that are listed in the debug var section of the method.

0

Please sign in to leave a comment.