Attention: We are retiring the IIS.NET Community Blogs. Learn more >

ASP.NET Tips: How to capture a dump

There are multiple ways to capture a dump.  There are some examples discussed in my previous post, HOWTO- Capture a dump on a specific managed exception.  You can just use DebugDiag to capture a dump.  The easiest way in DebugDiag is to just click on the Processes tab, find the process you want to get a dump for:

DebugDiag

Then right-click on the process and choose Create Full Userdump.

Another method is to use adplus.  It is installed with the debugger package.  You can they just pass the Process ID (PID) to adplus from a command line.  For instance, to get an immediate dump, you can put:

adplus -hang -p "process id"

If you are using Vista or Windows Server 2008, you can also just use Task Manager.  When you click on the process tab:

TaskMan

You can then right-click on the process and choose Create Dump File.

Depending on the situation, there are other ways to get a dump.  For example, you can use Windows Error Reporting (WER).

kick it on DotNetKicks.com

No Comments