Skip to content
Advertisement

Tag: jdi

Is it possible to start java jdwp after JVM startup (aka: at runtime) without command line parameters?

I would like to enable debugging at some point on the current JVM without adding the command line parameters -agentlib:jdwp. Is it possible to do so programmatically from within the current running JVM ? Without any third party libraries ? Other command line parameters (such as -Djdk.attach.allowAttachSelf=true) can be considered. causes : Answer In modern JVM (Java 6+) the agents

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

JDI Thread Evaluations has encountered a problem

I’m running Eclipse for Java. I created a DOM version of an XML file. Now I want to change an attribute of an element in the file. I called a method that called a method in the class that controls the DOM, and I got a dialog box saying “JDI Thread Evaluations has encountered a problem. Exception processing async thread

Advertisement