Results 1 to 4 of 4

Thread: confige QCreator to see QString in debugging with mingw (debugging macro)?

  1. #1
    Join Date
    Jul 2009
    Posts
    89
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default confige QCreator to see QString in debugging with mingw (debugging macro)?

    I use QtCreator with mingw (gcc 4.5.0). The only way I can look into a QString "foo" is to manually add it to the watch window and edit it to "foo.toAscii()" and open that variable structure to show d and *d and then the data array. I configure the debugging in the options menu under debug.
    It doesn't matter if I use gdb.exe (v 7.1), or the gdb-i686-pc-mingw32.exe that comes with the creator and it doesn't matter if I switch the debugging helper macros on or off (C:\Qt\4.6.2\qtc-debugging-helper\debug\gdbmacros.dll).
    Is it sufficient to check the checkbox use debugging macro's in the option menu, or do I have to ad the dll to my project? Or do something else? I googled and looked in this forum but can't find it.

    thanks.

  2. #2
    Join Date
    May 2008
    Posts
    155
    Thanked 15 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: confige QCreator to see QString in debugging with mingw (debugging macro)?

    Qt Creator 2.0 and later does not use the compiled version of the debugging helpers anymore on Windows, so C:\Qt\4.6.2\qtc-debugging-helper\debug\gdbmacros.dll is irrelevant. It uses some Python scripts in shared/qtcreator/gdbmacros/*.py instead.

    Without seeing the debugger log it's hard to say what's going on.

    However, gcc 4.5.0 has some _really_ bad bug in debug information generation, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44645 to a degree that makes it unusable for debugging. And that's on top of http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44731 that's haunting users also in 4.4.x.

  3. #3
    Join Date
    Jul 2009
    Posts
    89
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: confige QCreator to see QString in debugging with mingw (debugging macro)?

    thanks for the warning. I now use the mingw that comes with the creator 2.0.1 install that is 4.4.0
    Quote Originally Posted by ktk View Post
    Without seeing the debugger log it's hard to say what's going on.
    How do I generate one?
    cheers

  4. #4
    Join Date
    May 2008
    Posts
    155
    Thanked 15 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: confige QCreator to see QString in debugging with mingw (debugging macro)?

    The contents of the right pane of Windows->Views->Debugger.

Similar Threads

  1. QString and debugging
    By bnilsson in forum Qt Programming
    Replies: 4
    Last Post: 15th February 2011, 05:38
  2. How to View QString Object data while debugging?
    By payal in forum Qt Programming
    Replies: 6
    Last Post: 15th February 2011, 05:34
  3. debugging qt
    By freekill in forum Newbie
    Replies: 4
    Last Post: 26th November 2009, 05:21
  4. Debugging
    By Voldemort in forum Qt Programming
    Replies: 13
    Last Post: 14th May 2007, 20:38
  5. Macro used for debugging
    By sunil.thaha in forum General Programming
    Replies: 11
    Last Post: 30th March 2007, 17:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.