Tomcat9 Enabling remote Debugging Debian 11

by | Aug 23, 2022 | Debian 11, Java, Linux, Tomcat9 | 6 comments

Hello guys,

How are you doing? So basically to enable remote debugging on Debian 11 for tomcat9.

Open the default tomcat9 file located under:

/etc/default/tomcat9

Then add:

JAVA_OPTS=”${JAVA_OPTS} -agentlib:jdwp=transport=dt_socket,address=*:8001,server=y,suspend=n”

After that restart Apache Tomcat 9 🙂
systemctl restart tomcat9

Congratulation now you have debugger enabled and listening on port 8001 if you want this only for localhost change the * to localhost or 127.0.0.1 next to :8001.

6 Comments

  1. Anonymous

    Everything is very open with a really clear description of the challenges. It was definitely informative. Your site is very helpful. Many thanks for sharing!

    Reply
    • Bryar

      Thanks for your comment, and I’m glad helped you out.

      Reply
  2. Anonymous

    The next time I read a blog, I hope that it doesnt disappoint me as much as this particular one. I mean, I know it was my choice to read through, nonetheless I actually believed you would probably have something interesting to say. All I hear is a bunch of complaining about something that you could possibly fix if you were not too busy seeking attention.

    Reply
    • Bryar

      The title is really clear, and my answer is very brief and stright to the exact point..

      I don’t understand your moaning.

      Reply
  3. Anonymous

    Greetings! Very helpful advice within this post! It is the little changes that will make the most significant changes. Thanks for sharing!

    Reply
    • Bryar

      Thanks and you are welcome also avoid XSS in your url field. it is childish.

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

avatart

About

I’m a System Administrator and a developer with 10+ years of experience.