-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
Entries tagged [debug]
Remote debugging of standalone application with IntelliJ IDEA
TweetPosted on Friday Feb 06, 2015 at 11:08AM in Technology
Environment
-
IntelliJ IDEA 14.0.3
-
Oracle JDK 8u20
-
OS X 10.9
Procedure
-
Open/create/import a project of the target application in IntelliJ IDEA
-
Attach additional sources such as dependencies if you need it. it can be attached from
Project Structure ⇒ Libraries. -
Set breakpoints as you desired
-
Open
Edit Configurations… -
Click
+button -
Click
Remote -
Look
Configurationtab and copy the fragment inCommand line arguments for running remote JVMas follows: -
Click
OK -
Launch target application with preceding argument which copied
-
Click insect icon on upper-right