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. Should I enable lldb debug scripts?

Should I enable lldb debug scripts?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 441 Views 2 Watching
  • 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by Perdrix
    #1

    I've just started using lldb-dap for remote debugging on macOS (instead of lldb-mi). This is Visual Studio.

    When I start a debug session I get:

    warning: 'QtCore' contains a debug script. To run this script in this debug session:
    
        command script import "/opt/Qt/6.9.1/macos/lib/QtCore.framework.dSYM/Contents/Resources/Python/QtCore.py"
    
    To run all discovered debug scripts in this session:
    
        settings set target.load-script-from-symbol-file true
    
    warning: 'QtCore' contains a debug script. To run this script in this debug session:
    
        command script import "/opt/Qt/6.9.1/macos/lib/QtCore.framework.dSYM/Contents/Resources/Python/QtCore.py"
    
    To run all discovered debug scripts in this session:
    
        settings set target.load-script-from-symbol-file true
    
    

    Note that I didn't "double paste" the messages above - that is exactly what the debugger presented to me!

    Is it helpful to enable all debug scripts or are they purely for "Qt internal" use?

    Thanks, David

    1 Reply Last reply
    1
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • PerdrixP Offline
      PerdrixP Offline
      Perdrix
      wrote on last edited by
      #2

      Bump ...

      cristian-adamC 1 Reply Last reply
      0
      • PerdrixP Perdrix

        Bump ...

        cristian-adamC Offline
        cristian-adamC Offline
        cristian-adam
        wrote on last edited by
        #3

        @Perdrix Visual Studio has its Natvis debugging helpers.

        The scripting part from Qt is maybe related to Qt Creator. I don't know if it works with Visual Studio's DAP support. I remember seeing somewhere that the scripts should also help with Xcode.

        You could test and say if you can see this program:

        #include <QCoreApplication>
        #include <QList>
        #include <QString>
        #include <QDebug>
        
        int main(int argc, char *argv[])
        {
            QCoreApplication a(argc, argv);
        
            QList<QString> message;
            message << "Hello";
            message << "Qt";
            message << "World!";
        
            qDebug() << message; // <-- breakpoint here
        }
        

        works just as well as it does with Qt Creator:
        hello-qt-world.png

        1 Reply Last reply
        1

        • Login

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