Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote Debugging in IntelliJ Tomcat

How to enable remote debugging from IntelliJ with Tomcat?

like image 691
user729344 Avatar asked Jul 18 '11 13:07

user729344


1 Answers

Use Tomcat Run/Debug Configuration. Click the enter image description here button and choose new Remote configuration. In the Configuration tab copy the JVM options suggested by IDEA.

Run Tomcat with the suggested JVM options:

set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=1317,suspend=n,server=y startup 

Press Debug button in IDEA.

Otherwise it's the same as for Local Tomcat, check the tutorial.

Note that deploying to Tomcat is available only in IDEA Ultimate, but you can still manually deploy to Tomcat on your own and use Java's remote debug features using the free edition.

like image 177
CrazyCoder Avatar answered Oct 03 '22 08:10

CrazyCoder