Question

I often use exception breakpoints when debugging in Eclipse. The problem I often have is my framework libraries (especially Tomcat) often throw exceptions as part of their normal lifecycle.

If I set an ArrayIndexOutOfBounds exception for example, then I hit the breakpoint several times in sun.reflect.generics.parser.SignatureParser during startup.

Is it possible to get eclipse to filter out exceptions thrown from certain packages?

Était-ce utile?

La solution

You can filter the places where the breakpoint should hit in the breakpoint properties dialog.

Right click the breakpoint -> Breakpoint properties -> Filtering

and you can specify the locations as shown below.

enter image description here

More information here.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top