Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top