从命令行开始调试
您可以通过命令行使用Qt Creator 调试器界面。要将调试器连接到运行中的进程,请将进程 ID 作为-debug
选项的参数。要检查核心文件,请指定文件名。Qt Creator 会执行所有必要步骤,如搜索属于核心文件的二进制文件。要连接调试服务器,请指定服务器位置和端口号。
例如
C:\qtcreator\bin>qtcreator -debug 2000
C:\qtcreator\bin>qtcreator -debug core=core.2000
C:\qtcreator\bin>qtcreator -debug some.exe,core=core
C:\qtcreator\bin>qtcreator -debug server=some.dot.com:4251
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.