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



  • 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!


Log in to reply