Click to Rate and Give Feedback
MSDN
MSDN Library
Diagnostics
Debuggers
Debugger Reference
Debugger Commands
Meta-Commands
 .quit_lock (Prevent Accidental Quit...

  Switch on low bandwidth view
Debugging Tools for Windows
.quit_lock (Prevent Accidental Quit)

The .quit_lock command sets a password to prevent you from accidentally ending the debugging session.

Syntax

.quit_lock /s NewPassword 
.quit_lock /q Password 
.quit_lock 

Parameters

/s NewPassword
Prevents the debugging session from ending and stores NewPassword. You cannot end the debugger session until you use the .quit_lock /q command together with this same password. NewPassword can be any string. If it contains spaces, you must enclose NewPassword in quotation marks.
/q Password
Enables the debugging session to end. Password must match the password that you set with the .quit_lock /s command.

Environment

ModesUser mode, kernel mode
TargetsLive, crash dump
PlatformsAll

Comments

Without parameters, .quit_lock displays the current lock status, including the full text of the password.

You can repeat the .quit_lock /s command to change an existing password.

When you use .quit_lock /q, the lock is removed. This command does not close the debugger. Instead, the command only enables you to exit the session in the typical manner when you want to.

Note  The password is not "secret". Any remote user who is attached to the debugging session can use .quit_lock to determine the password. The purpose of this command is to prevent accidental use of the q (Quit) command. This command is especially useful if restarting the debugging session might be difficult (for example, during remote debugging).

You cannot use the .quit_lock /s command in Secure Mode. If you use this command before Secure Mode is activated, the password protection remains, but you cannot change or remove the password.

Additional Information

For more information about the various methods of exiting the debugger or detaching from the target, see Ending the Debugging Session.

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