Should I enable lldb debug scripts?
-
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 trueNote 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
-
C Christian Ehrlicher moved this topic from General and Desktop on
-
@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:
