Thanks - the idea of putting the breakpoint on the exception constructor is a useful idea in my case.
Regarding the general utility of being able to break on all thrown exceptions:
I'd say it depends on how many different exception types you're using, whether
or not you're throwing any objects that don't even have constructors ("int",
for example), and what fraction of exceptions thrown (by either your own code
or 3rd party code) are the ones you want to catch.
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Coda Highland
> Sent: Thursday, December 17, 2009 10:27
> To: [email protected]
> Subject: Re: [Qt-creator] Break on thrown exceptions?
>
> In general; this should not be a desirable feature, as
> C++-based libraries should be free to use exceptions
> internally without interfering with your application's functionality.
>
> If you're interested on breaking on a SPECIFIC exception I'm
> sure there are a number of ways this could be done. A
> breakpoint on the exception object's constructor would be one
> possible choice. Catching the exception, breaking in the
> catch block, and re-throwing after the breakpoint would be
> another way to handle it.
>
> /s/ Adam
>
> On Thu, Dec 17, 2009 at 9:04 AM, Convey, Christian J CIV NUWC
> NWPT <[email protected]> wrote:
> > Does Qt Creator let me specify that during debugging, the
> program should break (e.g., a breakpoint is triggered)
> whenever a C++ exception is thrown?
> >
> > I'm currently using Qt Creator 1.2.1 and gdb 7.0.
> >
> > Thanks,
> > Christian
> >
> > _______________________________________________
> > Qt-creator mailing list
> > [email protected]
> > http://lists.trolltech.com/mailman/listinfo/qt-creator
> >
> >
> _______________________________________________
> Qt-creator mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
