4.1.11 WinDbg Command-Line Options

From the command line the following options are available:

windbg [-a] [-g] [-h] [-i] [-k [platform, port, speed]] [-l[text]] [-m] [-p id [-e event]] [-s[pipe]] [-v] [-w name ] [-y path] [-z crashfile] [filename[.ext] [arguments]]

Options Explanation
-a Ignore all bad symbols (but still print warning message).
-g Go now; start executing the process.
-h Causes child processes to inherit access to WinDbg's handles.
-I Ignore workspace; like running without any registry data.
-k [platform port speed] Run as a kernel debugger with the specified options:

platform is the target machine type (i386, MIPS, Alpha)
port is the com port (com1 ... comn)
speed is the com port speed (9600, 19200, 57600, ...)
-l [text] Sets the window title for WinDbg.
-m Start WinDbg minimized.
-p id Attach to the process with the given id.
-s [pipe] Start a remote.exe server, using the named pipe in pipe..
-v Verbose option; WinDbg prints module load and unload messages.
-w name Load the named workspace.
-y path Search for symbols along the specified path(s). You can specify multiple paths by separating them with a semicolon.
-z crashfile Debug the specified crash dump file.
filename[.ext] Program to debug or file to edit.