kdrakon
kdrakon

Reputation: 172

Is it possible to remotely debug a single and specific WAR deployment on Tomcat?

I have access to a remote Tomcat server with a number of different deployed WARs. I can't thoroughly test the WARs locally because of some remote system dependencies and therefore would like to remotely debug them. Because this is a production Tomcat server and I don't have access to setup additional remote servers (e.g. for stage testing), I would like to reduce as much as possible the security and performance issues of remote debugging via the Java Platform Debugger Architecture. My understanding of using JPDA with Tomcat is that it reveals all deployed WARs for debugging. Because most of the WARs are in production use, my scenario requires only debugging new deployments. Is it possible to exclusively limit which deployments should be accessible?

Obviously, short and sweet answers are acceptable (yes/no). I haven't found any documentation to say otherwise, so I assume it's not possible.

Upvotes: 1

Views: 656

Answers (1)

Omar
Omar

Reputation: 699

Possible or not I think you should not debug in a production environment since IT IS A PRODUCTION ENVIRONMENT.

The recommendation is to check the log files generated by the application so you can see the behavior (if it raise an exceptions in a class/process/method or if everything is just working as expected).

Looking at google I found this: http://wiki.apache.org/tomcat/FAQ/Developing#Q2

Did you tried what it is stated in the link above?

Upvotes: 0

Related Questions