Parameters

-sCommandString

Specifies a new prompt command string. Whenever the target stops executing, the debugger issues and immediately runs the CommandString command. If CommandString contains spaces or semicolons, you must enclose it in quotation marks.

-c

Deletes any existing prompt command string.

Environment

Modes

User mode, kernel mode

Targets

Live, crash dump

Platforms

All

Additional Information

Remarks

If you use the .pcmd command without parameters, the current prompt command is displayed.

When you set a prompt command by using .pcmd -s, the specified CommandString is issued whenever the target stops executing (for example, when a g, p, or t command ends). The CommandString command is not issued when you use a non-execution command, unless that command displays registers or target state information.

In the following example, the first use of .pcmd sets a fixed string that appears with the prompt. The second use of .pcmd causes the debugger to display the target's current process ID and thread ID every time that the prompt appears. The special prompt does not appear after the .ttime command is used, because that command does not involve execution.