1

I am working with STS in eclipse Juno, Spring 3.1.1 hibernate 4.1, tomcat 7 and mySQL.

I tried to debug my application by:

  1. right-clicking on the server (in the server view) ->"restart at debug".

  2. adding the breakpoints in my code.

  3. selecting "debug on server".

but it just launch the application without stopping at the breakpoints.

2 Answers 2

2

Did the server restart when you clicked on "Restart a server in debug mode"? Check your log.

If not, kill it and start by clicking on "Start a server in debug mode" (the little bug in the Servers view) instead of using the green/white arrow ("Run").

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

3 Comments

Aaron i did "Start a server in debug mode", just like you said, but still, it launches the application without stoping in the breakpoints..
Add a System.out.println() or logging call in the same place. If you see this, then debugging doesn't work. If you don't see the output, the code simply isn't called and you need to find out why.
Aaron you were right, by bad.. Anton you were right as well (it did not rich the breakpoint)..
1

The other option is that your breakpoints are never reached. The code goes along a different route.

Comments

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.