By the way, if you're using gcc (at least on Linux, not sure about
Windows) you can break on __raise_exception.

/s/ Adam

On Thu, Dec 17, 2009 at 9:33 AM, Convey, Christian J CIV NUWC NWPT
<christian.con...@navy.mil> wrote:
> 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: qt-creator-boun...@trolltech.com
>> [mailto:qt-creator-boun...@trolltech.com] On Behalf Of Coda Highland
>> Sent: Thursday, December 17, 2009 10:27
>> To: qt-creator@trolltech.com
>> 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 <christian.con...@navy.mil> 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
>> > Qt-creator@trolltech.com
>> > http://lists.trolltech.com/mailman/listinfo/qt-creator
>> >
>> >
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator@trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>

_______________________________________________
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to