Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Debugging on MacOS X (XCode) with lldb?
QtWS25 Last Chance

Debugging on MacOS X (XCode) with lldb?

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 1 Posters 7.4k Views
  • 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.
  • V Offline
    V Offline
    VernJensen
    wrote on last edited by
    #1

    If there is a better forum area for me to post this in, please let me know.

    I'm interested in viewing values such as QString in XCode 4.3 or newer, which now uses lldb. Python scripts are used to do this. The documentation on Nokia's QT site is outdated, and lists GDB as the debugger on MacOS X, and states that Python scripts are not an option.

    Has anyone already written Python scripts to handle this, so complex variables can be viewed directly in the debugger?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VernJensen
      wrote on last edited by
      #2

      The link to the outdated Nokia page I reference:

      http://doc.qt.nokia.com/qtcreator-2.5/creator-debugging-helpers.html

      1 Reply Last reply
      0
      • V Offline
        V Offline
        VernJensen
        wrote on last edited by
        #3

        I found that the way to do this is not by using Python scripts, but by using "Set Summary Format" in the pop-up menu when you right-click on a variable name while debugging. You then type in, for QStrings:

        {(const char *)$VAR.toUtf8().constData()}:s

        This crashed in my copy of XCode 4.3, but works in XCode 4.4 developer preview.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved