Debugging Tools for Windows |
The .idle_cmd command sets the idle command. This is a command that is executed whenever control returns from the target to the debugger. For example, when the target reaches a breakpoint, this command executes.
.idle_cmd String
.idle_cmd /d
This command cannot be used in script files.
Modes | user mode, kernel mode |
Targets | live, crash dump |
Platforms | all |
When .idle_cmd is used with no parameters it displays the current idle command.
In WinDbg, idle commands are stored in workspaces.
Here is an example. The idle command is set to r eax. Then, becausethe debugger is already idle, this command immediately executes, displaying the eax register:
Execute when idle: r eax
eax=003b0de8