查看线程

一个应用程序可以拥有多个共享同一地址空间的执行线程,这意味着它们可以访问和修改相同的变量。但是,每个线程都有自己的寄存器、执行堆栈,并且可能拥有私有内存。

当多线程应用程序被中断时,您可以在“Threads ”视图 (1) 中查看应用程序中当前处于活动状态的线程,并在它们之间切换:

线程视图

您还可以在调试器工具栏上的“Threads ”字段(2)中选择一个线程。

这样,您就可以选择调试器当前聚焦的线程。

“堆栈”视图会相应地调整其内容。

另请参阅 “操作指南:调试调试过程和 调试器”

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.