Commands


Debugging Tools for Windows
~s (Set Current Thread)

The ~s command sets or displays the current thread number.

In user mode, ~s sets the current thread. Do not confuse this command confused with the ~s (Change Current Processor) command (which works only in kernel mode), the |s (Set Current Process) command, the ||s (Set Current System) command, or the s (Search Memory) command.

Syntax

~Thread s 
~ s 

Parameters

Thread
Specifies the thread to set or display. For more information about the syntax, see Thread Syntax.

Environment

ModesUser mode only
TargetsLive, crash dump
PlatformsAll

Comments

You can specify threads only in user mode. In kernel mode, the tilde (~) refers to a processor.

If you use the ~s syntax, the debugger displays information about the current thread.

This command also disassembles the current instruction for the current system, process, and thread.

Additional Information

For more information and other methods of displaying or controlling processes and threads, see Controlling Processes and Threads.

Page view tracker