Question

I was following this article about Remote debugging with Eclipse and I was surprised by:

Debug an application remotely (sub title)
...
2. Set a breakpoint
...
4. Export the Java project
5. Run the Java application manually
6. Debug the application remotely

This in fact means that breakpoint information is saved inside the exported jar file.

Is it really true? How can one disable it when exporting a jar?

What is the mechanism, is it saved inside .class, in byte code?

Then I have created remote debug configuration without specifying the project and started debug. The execution of exported jar was really breakpointed in a right place according to stack trace.

enter image description here

Was it helpful?

Solution

No, Eclipse doesn't export breakpoints to jar files. It keeps them in its own workspace such as when the running application hits the code that has a breakpoint set, it just acts accordingly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top