查看线程
一个应用程序可以有多个执行线程,它们共享一个地址空间,这意味着它们可以检查和更改相同的变量。不过,每个线程都有自己的寄存器、执行堆栈和可能的私有内存。
当多线程应用程序被中断时,可以查看应用程序中当前激活的线程,并在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.