[JAVA] Remote debugging with intellij


I never knew how to debug Java Remote

Solution !!

Execute Java remotely with the following command

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8888 -jar your.jar

Local intellij settings

Write the port and host specified above from Edit Configuration (8888 in this case)



If you set a breakpoint on intellij (you need the same code on intellij as Java to let Remote do) and run it, you can debug like local!


Recommended Posts

Remote debugging with intellij
Remote debugging with Gradle test
Hot deploy with IntelliJ IDEA
Recognize Rails projects with Intellij idea
(Intellij) Hello World with Spring Boot
Swift beginner Debugging memo with Xcode
Develop Processing with IntelliJ + Kotlin + Gradle
Remote debugging of the Cognos SDK
Try remote debugging of Java with Remote Containers in Visual Studio Code Insiders
[Java] Connection with local DB (IntelliJ + SpringBoot)
(IntelliJ + gradle) Hello World with Spring Boot
Try using the Wii remote with Java