sackoverflow
sackoverflow

Reputation: 797

Is a mini dump useful for debugging in .NET

I see some conflicting opinions about mini dumps for .NET debugging, for example;

Mini Dump Snapshots and SOS

vs

Minidumps are all but useless in .NET

They seem like would be useful to me, why might they be considered useless by some?

Upvotes: 4

Views: 1728

Answers (4)

Stanislav Berkov
Stanislav Berkov

Reputation: 6287

At least it can give you managed callstack. See min set of parameters that must be passed to 'MiniDumpWriteDump' to be enough for !clrstack: What is minimum MINIDUMP_TYPE set to dump native C++ process that hosts .net component to be able to use !clrstack in windbg

Upvotes: 1

GregC
GregC

Reputation: 8007

Be careful when creating minidumps of 32-bit processes on a 64-bit machine. ProcDump utility seems to work well. These dumps will open successfully in VS2010.

Upvotes: 0

Albin Sunnanbo
Albin Sunnanbo

Reputation: 47068

The main difference is that the former article is from 2005 when .NET 4 was not released, the second one talks about .NET 4.

The ability to easily debug managed mini dumps was introduced in .NET 4.

Upvotes: 1

Will Dean
Will Dean

Reputation: 39530

Because 'minidump' is a very vague term, which covers files that contain widely varying amounts of information.

A dump file with little more than stacks in it is much less useful for .NET than in the unmanaged world, that's true, but you don't have to make dump files that small.

Upvotes: 3

Related Questions