Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why windbg command start with . or !

Tags:

windows

windbg

Is there any difference between . and ! ?

like image 810
Bin Chen Avatar asked Oct 27 '09 06:10

Bin Chen


People also ask

How do you start a WinDbg?

Launch Notepad and attach WinDbg On the File menu, choose Open Executable. In the Open Executable dialog box, navigate to the folder that contains notepad.exe (typically, C:\Windows\System32). For File name, enter notepad.exe. Select Open.

What can WinDbg do?

WinDbg is a multipurpose debugger for the Microsoft Windows computer operating system, distributed by Microsoft. Debugging is the process of finding and resolving errors in a system; in computing it also includes exploring the internal operation of software as a help to development.

How do you attach a WinDbg?

When WinDbg is in dormant mode, you can attach to a running process by choosing Attach to a Process from the File menu or by pressing F6. In the Attach to Process dialog box, select the process you want to debug, and select OK.


1 Answers

There are different kinds of commands in WinDbg.

Regular commands, e.g. kb apply to the debugging session. E.g. show stack dump etc.

Meta commands are prefixed with a dot, e.g. .load. Meta commands apply to the debugger itself. E.g. load extensions, show help and so forth.

Extension commands are prefixed with an exclamation mark, e.g. !analyze and !dumpheap are defined in debugger extensions (DLLs that provide additional functionality).

like image 86
Brian Rasmussen Avatar answered Sep 24 '22 05:09

Brian Rasmussen