thread命令
命令功能
查看单个/全部thread信息、设置调试作用范围。
命令格式
查看单个thread信息:
thread info [-h | --help] {THREAD_INDEX}
查看全部thread信息:
1 | thread list [-h | --help] |
设置调试作用范围:
thread set [-h | --help] {THREAD_INDEX}

- thread命令可简写为t,例如:t info 1。
- THREAD_INDEX:是指线程索引,该参数为必选参数,取值为正整数。
使用示例
执行以下命令,查看thread支持的功能信息:
1 | thread -h
|
返回信息如下:
1 2 3 4 5 6 | The most commonly used thread(t) sub commands are: list Displays all threads in the current rank. info Displays the specified thread in the current rank. set Specifies the currently operated thread. See 'thread(t) COMMAND -h/--help' for more information on a specific command. |
父主题: 调试状态命令