1

I want to debug a webapp through Eclipse. The webapp will be running on a Tomcat 7 instance that I have configured within Eclipse, and thus everything, including Tomcat's launch will be done from within Eclipse.

Now, my question is what is the best way to debug the webapp in such a situation. Is local debugging possible, or the only solution is remote debugging.

I know how to do remote debugging, but given that everything is done from within Eclipse, I wanted to see if there is a better way of doing it.

1 Answer 1

3

Click on Run -> Debug Configurations.... On the left side you should have your tomcat server listed. (if not, you first have to define it in the preferences).

Configure your VM settings and whatever you need, then just click Debugin the lower right corner.

Your server should now start in debug mode, and stop on breakpoints.

From now on the server will be included in popdown menu of the Debug-Button in your toolbar.

Alternatively you can add the Servers View (Window -> Show View -> Servers), select your server and start it in debug by right-clicking

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks; exactly what I need. I can't believe I had actually missed local debugging.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.