6

I have added new method to my javacode and put breakpoint at the begin of this method and different places. Eclipse debugger go throw the breakpoints in the old code but not in the new added method. I have cleared my project project-> clear to exclude the cache possibility. for me, it appears that eclipse dont recognize the new added Java code.

Any Idea what could be the problem? I use eclipse Juno Service Release 2.

6
  • 1
    Obvious question, but do you even call this new method ? Commented Apr 4, 2014 at 12:03
  • Well, then I can't help you sir. Hopefully you will find out. Commented Apr 4, 2014 at 12:07
  • @Arty: sure i did. The debugger pointer jump to empty space, where is no code :( Commented Apr 4, 2014 at 12:10
  • did you compile your code with the new method in it. until you compile and redeploy debugger will not recognize new code Commented Apr 4, 2014 at 12:29
  • Can you show us the part the method is called and the code of the method? maybe you open a new thread or something and you wont jump to the breakpoint because you are in a different thread and the method is never called in the one you´ve joined. Commented Apr 4, 2014 at 12:38

1 Answer 1

2

You need to stop debugging and start the program again since the signature has changed. If you want more hot-swap possibilities you need to consider using JRebel or similar tool.

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

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.