【发布时间】:2016-02-09 16:20:08
【问题描述】:
我已经设置了标志 -DQT_QML_DEBUG 并在“构建并运行 > 运行 > 调试器设置”(我的翻译)中选中了“启用 QML”,但我仍然无法使用调试器。指令指针根本没有显示,文本视图不跟随指令指针。另外,我在开始时收到此警告:
Warning: "QML Debugger: Invalid argument 'services:DebugMessages' detected. Ignoring the same."
Warning: "QML Debugger: Invalid argument 'QmlDebugger' detected. Ignoring the same."
Warning: "QML Debugger: Invalid argument 'V8Debugger' detected. Ignoring the same."
Warning: "QML Debugger: Invalid argument 'QmlInspector' detected. Ignoring the same."
QML Debugger: Waiting for connection on port 39750...
编辑:环境是archlinux,因此是最新版本。
【问题讨论】:
-
对于 2021 年登陆这里的任何人,QTCreator (bugreports.qt.io/browse/QTCREATORBUG-23541) 中存在一个已“解决”的错误,但在 4.14.0 中仍然出现。对我来说,我做了以下工作:添加
QT_QML_DEBUG定义并取消选中“启用 QML”切换,然后重新编译所有,然后启用“启用 QML”,然后再次重新编译所有。
标签: c++ qt debugging cmake qml