Search code examples
visual-studio-2010debuggingcallstackminidump

Trouble debugging minidump in VS 2010


I'm calling MiniDumpWriteDump from .NET to generate a minidump, and that works fine. However, when I load the resulting dump into VS 2010, I don't see any useful info. In particular, the Call Stack window looks something like this:

Call stack

It doesn't contain any managed frames, although I'm writing the dump while in an exception handler in managed code. Also, it doesn't contain any frames located in my exe.

Any idea why this happens?

BTW when I create a dump manually from the VS debugger, the dump does contain managed frames as expected.

Edit:

I've found a Microsoft Connect issue about this. It says:

Currently the CLR does not support managed processes taking their own dumps.

Anyone know if that's still true?


Solution

  • I've found my mistake. I was looking at the call stack of the wrong thread (I didn't realize there was more than one thread running). Now I can see the managed call stack just fine.