Reputation: 26418
I have two eclipse instances running.
So can I debug this application in the eclipse where I have code base?
Upvotes: 3
Views: 176
Reputation: 1324268
You should be able to launch a remote debug session
1/ Specify the following option when launching the app from the first eclipse
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
2/ Launch a Remote Java App (Run > Debug> Debug Configurations... > Remote Java Application
.)
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
(if port 8000
is free) in order to debug the app from the "code base" eclipse.
See Remote Debugging with Eclipse.
You can specify the sources in the Remote Java App configuration by referencing your own code base.
Upvotes: 1
Reputation: 105220
I imagine your build produces a JAR file? if so, then you can run the JAR from the console and then plug the eclipse debugger.
Check this tutorial, that is clear and with screenshots
Upvotes: 2
Reputation: 6027
Yes, you can attach the debugger to a remote JVM. See How to attach debugger to running process?
Upvotes: 0