[Qt-creator] Question about debugger

Orgad and Raizel Shaneh orgads at gmail.com
Tue May 15 22:03:46 CEST 2012


On Tue, May 15, 2012 at 9:46 PM, Mohammad Mirzadeh <mirzadeh at gmail.com>wrote:

>
>
> On Tue, May 15, 2012 at 2:08 AM, <andre.poenitz at nokia.com> wrote:
>
>> Mohammad Mirzadeh [mirzadeh at gmail.com]:
>> > 1) Is it possible to catch exceptions of specific type and leave the
>> rest?
>>
>> Not directly. But you could probably tinker around with breaking on all
>> exception and installing a hook that issues a "continue" on exceptions
>> you are not interested in.
>>
>
> thanks; um but how do I install that "hook" ?
>
>
>>
>> > 2) Is it possible to interact with the gdb session through a console or
>> something?
>>
>> The "Debugger Log" view can handle some command. Either by using
>> the lineedit there, or typing/editing anywhere on the left ("input") pane
>> and sending the command using Ctrl-Return.
>>
>> What kind of commands do you want to send?
>>
>>
> mainly calling functions. I have several objects that I like to view. One,
> for example, is a simple container and right now I can only see the
> pointers. I'd like to have functions inside a debug object that I can
> directly call and view the objects with.
>
> I suggest you write dumpers for the types you're interested in. It really
worth the time it takes to write them.

See http://doc.qt.nokia.com/qtcreator-2.5/creator-debugging-helpers.html for
details. Reply if you need further help. I have some experience with
dumpers, and I'm sure Andre will be glad to help as well :).

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120515/74115494/attachment.html>


More information about the Qt-creator mailing list