简体   繁体   中英

Setting Up Tomcat Dubugging Mode

Now I have seen questions just like this on here but the answers were a bit confusing for me. I have a Struts2 application I am currently running on a Tomcat servlet. I am having an issue in one of my action classes and can't seem to debug it correctly - it just skips around the class and goes inside if statements that should not have been validated.

I think my issue is that I did not have Tomcat in debugging mode. I installed a JDK and am now trying to figure out how to set up Tomcat to debug. I found a couple posts on here talking about a Catalina.bat file - but I do not have one in my tomcat folder - I wanted to comment on the post and ask but don't have enough reputation to do so yet.

EDIT: this is the link I was talking about, sorry for the poor formating How to start debug mode from command prompt for apache tomcat server?

To start your tomcat in debug mode you need enable JPDA (Java Platform Debugger Architecture) as you might have figured in different articles you looked in. Here is another post which tells you what you need to post that describes the same.

How to start debug mode from command prompt for apache tomcat server?

As far as Catalina.bat is concerned, it's an executable file and like any other Java projects (example maven or ant), all executable are generally in bin folder under home directory. For Tomcat look in CATALINA_HOME\\bin folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM