How and where do I specify JVM debug startup parms? Follow
I know I need to specify JVMDI startup for JVM. But where do I do this:
Sorry for my ignorance, but VisualAge for Java took care of this for me, so I'm clueless.
Please sign in to leave a comment.
Ok. Got it. You place parms:
into the VM parameters text box of the *Run/Debug Configurations *window under the WebApp tab.
This allows remote debugging.
The above post is to run debug on your local host, but with the remote debug feature of IDEA. I tried to do this for a different reason at the advice of IntelliJ.
To do true remote debugging (i.e., on a completely diffent machine), you must supply the following parameters to tomcat as follows:
If you're running Tomcat from the startup.bat file, replace line by
If you're running Tomcat from a startup.sh file, then replace line by
Obviously, you have to recycle Tomcat after applying these changes.
By the way, the default port for Tomcat remote debugging is 8000, so you must configure IDEA's remote port (onm the Debug/Remote tab) to be 8000, not the 5005 defualt.
Hmmm... I'm talking to myself too much in this post. Perhaps someone will benefit from these ramblings.
See this thread ( http://www.intellij.net/forums/thread.jsp?forum=4&thread=32609&tstart=0&trange=50 ) for a potentially legitimate reason to remotely debug on the same machine.