Click to Rate and Give Feedback
MSDN
MSDN Library
Diagnostics
Debuggers
Debugger Reference
Debugger Commands
Commands
 ~s (Change Current Processor)

  Switch on low bandwidth view
Debugging Tools for Windows
~s (Change Current Processor)

The ~s command sets which processor is debugged on a multiprocessor system.

In kernel mode, ~s changes the current processor. Do not confuse this command with the ~s (Set Current Thread) command (which works only in user mode), the |s (Set Current Process) command, the ||s (Set Current System) command, or the s (Search Memory) command.

Syntax

~Processor s 

Parameters

Processor
Specifies the number of the processor to debug.

Environment

ModesKernel mode only
TargetsLive, crash dump
PlatformsAll

Comments

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

You can immediately tell when you are working on a multiple processor system by the shape of the kernel debugging prompt. In the following example, 0: means that you are debugging the first processor in the computer.

0: kd>

Use the following command to switch between processors:

0: kd> ~1s
1: kd>

Now the second processor in the computer that is being debugged.

See Also

Multiprocessor Syntax

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker