I'm debugging a Java aplication in eclipse. The problem is that now(I don't know what I've done) the debug starts from the beginning(the first line of the main) and not from the first breakpoint. It's very annoying because I have to go through many lines to get to the part that I want.
-
What is exactly your problem? What do you mean "starts from the beginning" ?Dimitri– Dimitri2010-12-21 14:10:11 +00:00Commented Dec 21, 2010 at 14:10
-
sorry, starts from the first line of the main, I'll editFederico Lenzi– Federico Lenzi2010-12-21 14:11:02 +00:00Commented Dec 21, 2010 at 14:11
-
1For starters, click "Resume" not "Step".OrangeDog– OrangeDog2010-12-21 14:11:56 +00:00Commented Dec 21, 2010 at 14:11
-
Note that you can tell it to continue to the next breakpoint with F8. Ctrl-R allows you to continue to a given line.Thorbjørn Ravn Andersen– Thorbjørn Ravn Andersen2010-12-21 14:41:57 +00:00Commented Dec 21, 2010 at 14:41
Add a comment
|
2 Answers
Look in the debug configuration for the configuration you are launching on the Main tab and make sure that "Stop in main" is NOT checked.
- Right-click on the project in the Package Explorer tab
- Choose "Debug As " > "Debug Configurations ..."
- Down the left side, find and select the debug configuration for the project/app/main you are debugging.
- Click on the "Main" tab.
- Uncheck "Stop in main"
- Click "Apply" button
Comments
You've probably have edited the file while debugging and the lines don't correspond to what you see. Try save the file, refreshing your project on the package explorer and try again. Also check that you are not escaping the breakpoints. If nothing works try removing your breakpoints and replacing them or even restart eclipse.