将调试器附加到运行中的应用程序
将调试器附加到本地或远程计算机上已运行的应用程序:
- 访问Debug >Start Debugging >Attach to Running Application 。
- 在Filter 中,输入一个字符串,按进程 ID 或名称过滤进程。
- 在列表中选择一个进程,然后选择Attach to Process 开始调试。
要刷新正在运行的进程列表,请选择Update List 。
要终止所选进程,请选择Kill Process 。
虽然该模式并不严格要求在Qt Creator 中打开一个项目,但打开该项目可以更方便地设置断点和步进代码。
您可以在将调试器附加到应用程序之前或之后指定断点。更多信息,请参阅设置断点。
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.