Gflags.exe enables and disables advanced internal system
diagnostics and troubleshooting features on computers running
Windows 2000 and Windows XP Professional. GFlags is
designed as a debugging tool for application developers. It is most
often used to turn on indicators that other tools track, count, and
log.
You can run Gflags from the command line or use its graphical
user interface dialog box.
You can use GFlags to activate the following debugging
features:
Registry. Set systemwide debugging features for all Windows
processes. These settings are stored in the registry. They take
effect when you restart the system and remain effective until you
change them.
Kernel mode settings. Set debugging features for this session.
These settings are effective immediately, but are lost when the
system stops. The settings affect processes started after this
command completes.
Image file settings. Set debugging features for a particular
program. These settings are stored in the registry. They take
effect when you restart the program and remain effective until you
change them.
Debugger. Specify that a particular program always runs in a
debugger. This setting is stored in the registry. It is effective
immediately and remains effective until you change it. (This
feature is available only from the Gflags dialog box.)
Launch. Run a program with the specified debugging settings.
The debugging settings are effective until the program stops. (This
feature is available only from the Gflags dialog box.)
Caution
Use GFlags only in consultation with Microsoft Product Support
Services. It is an optional component provided solely for
troubleshooting purposes. Incorrect use of this tool can degrade
system performance or prevent the system from starting, requiring
you to reinstall the operating system.