https://github.com/hueifeng/windbgmemo
This is a memo for windbg
https://github.com/hueifeng/windbgmemo
windbg
Last synced: 3 months ago
JSON representation
This is a memo for windbg
- Host: GitHub
- URL: https://github.com/hueifeng/windbgmemo
- Owner: hueifeng
- Created: 2020-12-22T13:07:06.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-22T13:11:17.000Z (over 4 years ago)
- Last Synced: 2025-01-18T12:49:33.992Z (5 months ago)
- Topics: windbg
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
WinDbg Memo
==================```
!loadby sos clr
```Loads the sos extension (lets you run commands on managed code)
```
kv
```Show the stack on the current thread's stack (mixed managed/unmanaged)
```
~*kv
```Show the stack of all threads (mixed managed/unmanaged)
```
!dumpheap -stat
```Dumps the heap
```
!dumpheap -type {typename}
```Dumps all objects that match the type name (partial matches)
```
!do {address}
```Dump object
```
!dumpvc
```Dump object for a value type
```
!gcroot {address}
```Show all objects that hold onto the object at address
```
!dso
```Dump stack objects
```
.preferdml 1
```Makes everything hyperlinks!
```
sxe clr
```Break on first chance CLR exceptions.
```
sxd -c "!pe" clr
```Print the details of every CLR exception as it occurs _without_ breaking into the debugger.
```
!EEStack -EE
```Dumps the managed stack of every managed thread in the process.
```
dv
```Dump native variables on the current frame.
```
!exchain
```Show all exception handlers on the stack.
```
.lastevent
```Shows what the hell happened on the thread.
```
!gle
```Get the last error on the current thread.
```
~*e {command}
```Runs command on each thread.
```
!runaway
```Shows the time the threads have been running
```
.shell ci {command}
```Open shell for command execution
```
!dlk
```Check for deadlocks
```
!locks
```Show process locks
```
~~[]s
```Switch threads