Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure Eclipse to skip Exceptions in debug mode?

Tags:

I am trying to debug huge system which has many caught exceptions. During debug process Eclipse stops on every exception, and I want to configure it to stop only on my breakpoint.

Is it any way to switch stopping on exceptions off ?

UPD.

  • I use Helios Release.
  • I already removed checkboxes from suspend on exception, and it did not helped.
like image 573
Nulldevice Avatar asked Sep 10 '10 14:09

Nulldevice


People also ask

How do I skip a debug loop?

You can add a breakpoint after the loop and click F8 (resume). The debugger will stop on the next found breakpoint, e.g. you will have skipped the loop(s).

How do I use toggle breakpoint in Eclipse?

Breakpoints To define a breakpoint in your source code, right-click in the left margin in the Java editor and select Toggle Breakpoint. Alternatively, you can double-click on this position. The Breakpoints view allows you to delete and deactivate Breakpoints and modify their properties.

How do I change debug in Eclipse?

menu item. Choose Run/Debug on the left, about half-way down. Choose Perspectives under that. Select Never at Open the associated perspective when launching and Open the associated perspective when an application suspends.


2 Answers

In the Eclipse preferences, you can uncheck the option Suspend execution on uncaught exceptions, located in Java > Debug panel.

What is your Eclipse version btw?

like image 68
Romain Linsolas Avatar answered Oct 23 '22 10:10

Romain Linsolas


In the Preferences menu under Java -> Debug you can turn off Suspend execution on uncaught exceptions That may help, as I expect although your codebase eventually catches exceptions, they are being thrown out of methods which are triggering this.

like image 25
Jon Freedman Avatar answered Oct 23 '22 10:10

Jon Freedman