Discussion:
Debugger stop when Exception occurs?
Franz
2009-02-23 08:55:54 UTC
Permalink
Hi,

one of the features I'm missing since I changed from Eclipse to NB is
the automatic breakpoint when an exception occurs. This features
automatically stops the JVM when an exception occurs - same as if a
breakpoint was set on this line and condition (see for example
http://www.google.de/search?q=eclipse+Java+Exception+Breakpoint ).

Is there something similar in NB (or an RFE to put a vote on)? I only
know the option to run, see an exception, set a breakpoint and rerun.
Obviously quite uncomfortable if the exception is thrown in a loop, as I
need to define a suitable condition for the breakpoint.

Thanks,
fg
Filip Zamboj
2009-02-23 11:49:39 UTC
Permalink
Post by Franz
Hi,
one of the features I'm missing since I changed from Eclipse to NB is
the automatic breakpoint when an exception occurs. This features
automatically stops the JVM when an exception occurs - same as if a
breakpoint was set on this line and condition (see for example
http://www.google.de/search?q=eclipse+Java+Exception+Breakpoint ).
Is there something similar in NB (or an RFE to put a vote on)? I only
know the option to run, see an exception, set a breakpoint and rerun.
Obviously quite uncomfortable if the exception is thrown in a loop, as
I need to define a suitable condition for the breakpoint.
Thanks,
fg
Hey!

There is a new feature waiting for you in NB 6.7M2. You go to Tools ->
Miscellaneous -> Java Debugger -> General and check "Stop on uncaught
exception".

Hope that helps.
Regards,
--
Issuezilla HowTo: http://www.netbeans.org/community/issues.html
-------------
Filip Zamboj
Sun Microsystems
Filip Zamboj
2009-02-23 12:30:22 UTC
Permalink
Post by Filip Zamboj
Post by Franz
Hi,
one of the features I'm missing since I changed from Eclipse to NB is
the automatic breakpoint when an exception occurs. This features
automatically stops the JVM when an exception occurs - same as if a
breakpoint was set on this line and condition (see for example
http://www.google.de/search?q=eclipse+Java+Exception+Breakpoint ).
Is there something similar in NB (or an RFE to put a vote on)? I only
know the option to run, see an exception, set a breakpoint and rerun.
Obviously quite uncomfortable if the exception is thrown in a loop,
as I need to define a suitable condition for the breakpoint.
Thanks,
fg
Hey!
There is a new feature waiting for you in NB 6.7M2. You go to Tools ->
Miscellaneous -> Java Debugger -> General and check "Stop on uncaught
exception".
Hope that helps.
Regards,
Hey!

I just realized I got a bit mistaken. There is/will be a feature similar
to what you were talking about, you can check on your own, anyway you
can check on your own http://wiki.netbeans.org/DebuggerExceptionBP70,
http://www.netbeans.org/issues/show_bug.cgi?id=144098. Sorry for being
mistaken.

Thanks.
Filip.
--
Issuezilla HowTo: http://www.netbeans.org/community/issues.html
-------------
Filip Zamboj
Sun Microsystems
Franz
2009-02-23 12:41:06 UTC
Permalink
Post by Filip Zamboj
Post by Filip Zamboj
Post by Franz
Hi,
one of the features I'm missing since I changed from Eclipse to NB is
the automatic breakpoint when an exception occurs. [...]
Hey!
There is a new feature waiting for you in NB 6.7M2. You go to Tools ->
Miscellaneous -> Java Debugger -> General and check "Stop on uncaught
exception".
Hope that helps.
Regards,
Hey!
I just realized I got a bit mistaken. There is/will be a feature similar
to what you were talking about, you can check on your own, anyway you
can check on your own http://wiki.netbeans.org/DebuggerExceptionBP70,
http://www.netbeans.org/issues/show_bug.cgi?id=144098. Sorry for being
mistaken.
Thanks a lot!
I'll keep an eye (and vote) on it.

Regards
franz

Loading...