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?

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top