Creating a dump file isn't always as easy as right clicking in Task Manager and copying the file to your computer.

Debugging dump files created on another machine

You are looking at revision 1 of this page, which may be out of date. View the latest version.  

Visual Studio can analyse dump files for .NET4 processes in a similar fashion to how you debug when running an application locally.

This is handy when machines running your application can't easily be debugged (eg client or production machine)

Creating a dump file using Task Manager is easy (from Vista onwards) - simply right click the process and choose create dump.

However, If you want to take the .dmp file and analyse it on your own PC you need to ensure you have taken the correct dump. (assuming you want to do Managed Debugging in Visual Studio 2010, I'm not talking about WinDBG)

Consider the matrix below:

OS architecture
32 bit64 bit
Process running as 32 bitTask Manager Use Debugging Tools (x86)
to create 32 bit dump
64 bitN/ATask Manager

If you are running a 32bit OS and developing an app that targets x86 but deploying to a 64bit server then the yellow box is your scenario.

There is no standalone download page, you have to get it via the Windows SDK If you're in a panic/hurry the filename is dbg_x86.msi and a quick google turned up this direct link which worked as of 29th Aug 2010.

adplus.exe -hang -pn DebuggingExampleApp.exe -o c:\temp
Posted by: Wallace Turner
Last revised: 23 Dec, 2011 03:41 AM History
You are looking at revision 1 of this page, which may be out of date. View the latest version.

Comments

No comments yet. Be the first!

No new comments are allowed on this post.