启用调试

Projects >Build & Run >Run >Run Settings 中为套件选择的运行设备上指定运行应用程序的设置。

运行设置 "中的 "调试器设置 "部分

要选择要调试的语言,请在Debugger Settings >C++ debugger,QML debuggerPython debugger 中选择AutomaticEnabled

调试 C++

Additional startup commands 中,可以输入调试 C++ 的其他设置:

不过,通常可以将该字段留空。

调试Qt Quick

在众所周知的端口上打开套接字会带来安全风险。互联网上的任何人都可以连接到您正在调试的应用程序并执行任何 JavaScript 函数。因此,请确保端口受到防火墙的适当保护。

要创建支持Qt Quick 应用程序项目调试的构建配置,还需要在全局或项目的Build Settings启用 QML 调试

另请参阅 "配置项目"、"如何调试"、"调试"、"调试器"和 "调试器"。

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.