Skip to content
Advertisement

Tag: jvmti

How to hide variables from Java’s JDI?

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 will have to somehow remove debug info from the instrumented code, but not sure how

Advertisement