informatics
informatics

Reputation: 23

Eclipse breakpoint debugging from the begin not from its position

I have a problem in Eclipse (with Java 8) that I add a breakpoint for a function in some class in the project. But when the debugging starts, it is from the beginning of the program (from the main method!). Of course, I do not want to follow all the program so please what can I do?

Upvotes: 1

Views: 334

Answers (3)

Olli Zi
Olli Zi

Reputation: 335

Take a look at the "Debug/Run Configuration..." and uncheck to button to start in debugging in the main method.

how to setup "Main Class" in "Run Configurations" in Eclipse

Uncheck/Check "Stop in main".

enter image description here

Is this what you want to do?

Upvotes: 1

Sumit Singh
Sumit Singh

Reputation: 15896

Select your debug configuration from menu Run->debug configurations...

Go to main tab and uncheck Stop in main checkbox.

enter image description here

Upvotes: 0

Jordi Castilla
Jordi Castilla

Reputation: 26961

Possibly you have a class or method breakpoint...

  • You can press F8 key to jump to next point or you can
  • Delete the breakpoint.

To modify them: open debug perspective and take a look to breakpoints:

enter image description here

if you don't have this, please take a look to other answers. ;)

Upvotes: 0

Related Questions