score:37

Accepted answer

another illustration: eclipse tip: breakpoint on exception

eclipse let you set breakpoints based on where an exception occurs.
you access the option via the "j!" http://help.eclipse.org/juno/topic/org.eclipse.jdt.doc.user/images/org.eclipse.jdt.debug.ui/elcl16/exc_catch.png icon in the debugging window (i.e., in the "breakpoint view").

add java exception window

the official help topic "add java exception breakpoint " has more on this.

  • the uncaught exception option is to suspend execution when an exception of the same type as the breakpoint is thrown in an uncaught location.
  • the caught exception option is to suspend execution when an exception of the same type as the breakpoint is thrown in a caught location.
  • do not forget the exception breakpoint suspend on subclass of this exception:
    to suspend execution when subclasses of the exception type are encountered.
    for example, if an exception breakpoint for runtimeexception is configured to suspend on subclasses, it will also be triggered by a nullpointerexception.

alt text

score:3

http://agile.csc.ncsu.edu/sematerials/tutorials/eclipse-debugger/

specifically the "5.0 special breakpoints and watching expressions" portion.


Related Query

More Query from same tag