WinDBG Common Command table [go]

Source: Internet
Author: User

start, attach process, execute and exit (starting, attaching, executing and Exiting)

=======================

Start, all Programs, debugging Tools for Windows, WinDBG

Start

F6

Attach to process

Attaching to a process

Ctrl-break

Interrupt Debugee

Interrupt the program that is being debug

. Detach

Detach from a process

Disengagement process

G

Continue Debugee execution

Continue executing the DEBUG program

Q

Exit WinDBG

Exit WinDbg

Get Assistance (Getting help)

=======================

?

Help on commands that affect the Debugee

List all built-in commands and operators

. Help

Help on commands that affect the debugger

List all meta commands

. HH Command

View the on line Help file

Open WinDbg's Help file

!help

Help on the extension DLL at the top of the chain (E. G., SOS)

List extended commands in an extension DLL help

Manipulation commands (issuing Commands)

=======================

Up ARROW, DOWN ARROW, enter

Scroll through command history

Navigating the command history

right mouse button

Paste into Command Window

In the command window, paste

Check for unmanaged environments (examining the unmanaged environment)

=======================

Lmf

List loaded modules with full path

Lists the modules that have been loaded and their full paths

Lmt

List loaded modules with last modified timestamp

Lists the loaded modules and the last modified timestamp

~

List unmanaged threads

List all unmanaged threads

~Thread s

Select a thread for thread specific commands

!token-n

View Thread Permissions

K

View the unmanaged Call stack

To view the unmanaged call stack

!runaway

View Thread CPU consumption

Displays the time that each thread occupies

Bp

Set a breakpoint

Set a breakpoint

. Dump Path

Dump Small memory image

Create a small dump memory image

. Dump/ma Path

Dump Complete Memory image

Create a full dump file

Using the Debuger DLL extension (working with Extension DLLs (E. G., SOS))

=======================

. Chain

List extensions DLLs

List all loaded debugger extension

. Load Clr10\sos

Load SOS for debugging framework 1.0/1.1

Load debug extensions for. NET 1.1 managed Programs

. Unload Clr10\sos

Unload SOS

Uninstall SOS

. Loadby SOS Mscorwks

Load SOS for Debugging Framework 2.0

Load debug extensions for. NET 2.0

SOS Command (SOS Commands)

=======================

!threads

View Managed Threads

View all managed Threads

!clrstack

View the managed Call stack

Viewing the managed Call stack

!dumpstack

View combined unmanaged & managed Call stack

View unmanaged and managed call stacks

!clrstack-p

View function call arguments

To view the parameters of a managed function call

!clrstack–l

View stack (local) variables

View local variables for managed stacks

!NAME2EE Module Class

View addresses associated with a class or method

To view the memory address of a class or method

!DUMPMT–MD Address

View the method table & methods for a class

View a method table for a specified address and a method set of a class

!DUMPMD Address

View detailed information about a method

Displays the METHODDESC structure information for the specified address

!do Address

View information about an object

Displays information about an object of an address, including fields, EEClass, Method table, and object size

!dumpheap–stat

View memory consumption by type

Show the use of heap memory

!dumpheap–min Size

View memory consumption by object if at least size

View heap memory usage, ignoring objects smaller than size bytes

!dumpheap–type Type

View memory consumption for all objects of type type

View memory usage for all types of objects

!gcroot Address

View which object is holding a reference to address

View all references to objects of the specified address

!syncblk

View information about managed locks

View managed locks (syncblock structure)

SOS 2.0 Command (SOS 2.0 Commands)

========================

!BPMD Module Method

Set Breakpoint

Sets a breakpoint on a specified method of a specified module

! Dumparray Address

View contents of an array

To view an element in an array

! Printexception

View information about recent exception

To format the most recent exception information

Data Source:

Windbg/sos Cheat Sheet

Http://geekswithblogs.net/.netonmymind/archive/2006/03/14/72262.aspx

SOS.dll (SOS debugging Extension)

Http://msdn.microsoft.com/en-us/library/bb190764.aspx

[Turn]http://www.cnblogs.com/awpatp/archive/2010/05/30/1747736.html

WinDBG Common Command table [go]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.