sarat
sarat

Reputation: 11130

How to list call stack of all managed threads using WinDBG?

I have a dump created from a managed application. I am using SOS/SOSEX extentions to ease my dump analysis. I'd like to list down the call stack of all managed threads as we do ~*kb with native applications. How do we do that?

Upvotes: 38

Views: 48108

Answers (3)

Justin
Justin

Reputation: 86729

Use the !EEStack command:

0:007> .load sos
0:007> !EEStack

See SOS.dll (SOS Debugging Extension)

Upvotes: 54

Vadym Chekan
Vadym Chekan

Reputation: 5157

This command will dump all managed threads

~*e!dumpstack

Upvotes: 39

JasonE
JasonE

Reputation: 896

with sosex, use ~*e!mk (~ - thread, * - all, e - execute this command, !mk - display managed stack. Most of the commands in sosex mirror the native command, but have the m (managed) in front of them.

Upvotes: 15

Related Questions