Pages

Enable Tomcat Debug with Intellij Idea

Nutshell guide to enable tomcat debug.

Prerequisites
1. Java & Tomcat

Step 1
Navigate to Tomcat Home directory bin folder

Step 2
Check setenv.sh is exists , if not create a file called setenv.sh and add following line.

 CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"  

Step 3
Start tomcat. Your tomcat debug port is not 8000.

Step 4
Open up Intellij Idea.
Run --> Edit Configuration --> select + --> Select Remote
Change port to 8000 and save.

3 comments:

  1. I have read your blog, it was good to read & I am getting some useful info's through your blog keep sharing...
    Web design training Chennai | Web design course in Chennai

    ReplyDelete
  2. Thanks of sharing this post…Python is the fastest growing language that helps to get your dream job in a best way, so if you wants to become a expertise in python get some training on that language.
    Regards,
    Python Training Institutes in Chennai|python training chennai

    ReplyDelete
  3. Thanks of sharing this post…Java is the fastest growing language that helps to get your dream job in a best way, so if you wants to become a expertise in Java get some training on that language.
    Regards,
    Core JAVA Training in Chennai | JAVA Training in Chennai

    ReplyDelete