java - How to jump where exception caught in IntelliJ debugger? -
i have
throw new indexoutofboundsexception();
line in code. unfortunately, exception has no effect: i.e. no message appeared , no program crash.
this because code called somewhere in system library , there exception caught , processed.
how find place?
if press f8
on line, jump code inside scene
:
try { tm = dndgesture.processtargetdrop(dragevent); } { dragboardhelper.setdataaccessrestriction( dndgesture.dragboard, true); }
but code catches exception? think should execute finally
block , go somewhere's catch
block. doesn't happen: if continue pressing f8
see no try/catch/finally
blocks.
how can happen?
you're looking exception breakpoint, can set break on exception though caught. in breakpoints dialog (it default bound ctrl+shift+f8 or cmd+shift+f8 depending on platform, or click in debug task pane), create java exception breakpoint notifications on both caught , uncaught.
then, once breakpoint triggers, should able step through code , see call stack , see what's catching it.
for more information, see creating exception breakpoints in intellij idea documentation, links specifics configuration options in breakpoint dialog.
Comments
Post a Comment