Anyway to debug an application remotely?
We can debug a web application on tomcat remotely. Is there anyway to do the same with a desktop application (an application having a public static void main method)? If yes, could anybody tell me how?
The reason I want to do that is the desktop application takes more memory than my machine has.
Regards.
请先登录再写评论。
Of course.
You have to launch the remote application with the appropriate switches (quick google for "java remote debug": java -Xdebug -Xrunjdwp:transport=dt_socket,address=8998,server=y -jar myapp.jar) and in idea create a a Run/Debug "Remote" configuration with the appropriate host and port.