Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Thread dump with .net 4

Good day. I'm trying to get a thread dump (stack trace and state for each running thread) in a .net 4 framework application.

Managed Stack Explorer doesn't do the trick for .net 4 I presume (I can't really find info on it), it shows only .net 3.5 and down applications.

Process explorer does give a thread dump, but with start addresses rather then stack trace which isn't very helpful.

Any ideas?

like image 621
Squigly Avatar asked Apr 11 '11 12:04

Squigly


1 Answers

Are you on Vista or Windows7?

Are you on 32 or 64bit?

Right click the process in Task Manager and select 'Create Dump File'. You can then drag the DMP file into Visual Studio (as long as its a .NET4 process) and view the information you require. see here for more information.

shameless plug See also my post on all the issues you might encounter obtaining and analyzing a dump file

like image 191
wal Avatar answered Oct 19 '22 04:10

wal