I never knew how to debug Java Remote
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8888 -jar your.jar
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!
Convenient!
Recommended Posts