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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top