Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    How do I configure the Xcode debugger to show Qt objects in a more useful way?

    Tools
    xcode debugging
    1
    1
    912
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Ghopper21 last edited by

      I am working on a Qt project that is configured for an Xcode build. Everything works great, including debugging. However, in the Xcode debugger's watch variables, I don't get useful information for Qt objects.

      For instance a QString will just show as a memory address, not as a human-readable string. Likewise, a QList shows a bunch of memory addresses, no the things in the list in a useful way.

      For QStrings, I know you can add a watch for myString.toUtf8().constData(). I'm not sure what to do for other Qt objects. My question is: is there a general way to get more useful debugger watch information for Qt objects (by default) in Xcode?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post