How do I stop IDEA debugger exiting when application terminates

my app is throwing a fatal exception and I'd like to see it, but the debugger window closes as soon as the error occurs. I seem to recall there's a simple switch to toggle in IDEA to fix this, but I couldn't see where from a leaf through the Help.

Any thoughts?

5 comments
Comment actions Permalink

Do you know what the class of the exception is? If so, just add it as
an exception breakpoint in the View Breakpoints dialog.

N.

alan brown wrote:

my app is throwing a fatal exception and I'd like to see it, but the debugger window closes as soon as the error occurs. I seem to recall there's a simple switch to toggle in IDEA to fix this, but I couldn't see where from a leaf through the Help.

Any thoughts?

0
Comment actions Permalink

that's a good idea but is a bit of hack for general purpose use. I was hoping for a more general solution to the problem of the debugger exiting before I can read the problem that killed it.

0
Comment actions Permalink

AFAIK the debugger will not break on exception unless you specifically
configure it to do so, irrespective of where the exception occurs...

N.

alan brown wrote:

that's a good idea but is a bit of hack for general purpose use. I was hoping for a more general solution to the problem of the debugger exiting before I can read the problem that killed it.

0
Comment actions Permalink

Hang on, just re-read this, are you talking about the "Hide debug window
on process termination" checkbox in the IDE Settings|Debug?

N.

alan brown wrote:

my app is throwing a fatal exception and I'd like to see it, but the debugger window closes as soon as the error occurs. I seem to recall there's a simple switch to toggle in IDEA to fix this, but I couldn't see where from a leaf through the Help.

Any thoughts?

0
Comment actions Permalink

that'll be the one! Thanks for the pointer.

0

Please sign in to leave a comment.