Results 1 to 3 of 3

Thread: Two Question about debugging

  1. #1
    Join Date
    Apr 2010
    Posts
    98
    Thanks
    19
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Two Question about debugging

    First,if Q_ASSERT() fails,the app will exit directly.For example, getting an item from a QList with an invalid index. Is there a way to make the app stop, just like when I get a segmentation fault, So that I can find out which line of code is the cause from the statck?

    Second, just as the attachments show,I can read the value of a QByteArray, QString(&etc.) in Qt Creator 1.3, but not in Qt Creator 2.0. Is it because QtCreator 2.0 currently not support it? Or I have to do something so that 2.0 acts like 1.3?

    Thanks~
    Attached Images Attached Images
    It's not the goodbye that hurts,but the flashback that follow.

  2. #2
    Join Date
    Mar 2009
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Two Question about debugging

    Just to note that I have the same problem. I could see QString values in Creator 1.3 debugger, Qt 4.6.1 (I believe) on Mac OSX 10.5. After upgrading to Creator 2.0 with Qt 4.6.3, I no longer can see the QString values in the debugger. It makes the debugger much less useful of course.

    The only work-around that I see is to select the d variable beneath the QString (i.e, QString:: Data variable) and then use the popup menu in the Locals and Watchers area and select the "Open Memory Editor at 0xNNNN", where of course NNNN is the memory location of the variable. At least then you can see the ASCII values on the right side.
    Last edited by bkudrle; 5th July 2010 at 19:25.

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

    Default Re: Two Question about debugging

    Why not report such problems to the makers of Qt Creator?

Similar Threads

  1. SXE key has not been set when debugging
    By learning_qt in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 24th September 2008, 08:59
  2. Debugging Qt
    By baray98 in forum Qt Programming
    Replies: 0
    Last Post: 7th May 2008, 00:16
  3. Debugging with gdb
    By SteM in forum Newbie
    Replies: 4
    Last Post: 9th August 2007, 14:40
  4. Debugging on Mac
    By rickbsgu in forum Qt Programming
    Replies: 3
    Last Post: 13th October 2006, 13:12
  5. Qt debugging
    By Morea in forum Newbie
    Replies: 4
    Last Post: 24th March 2006, 18:28

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.