How to install AeDebug to get minidump with process name?

I need to do some post mortem debugging in a C ++ project. A known way to do this is to set the cdb debugger as the minidump generator and then process the dump assembly. I read almost the entire network, and I did not find a solution for creating a mini-drive with the name of the process that crashed

Is there any way to set the registry variable AeDebug \ Debugger so that cdb generates a dump file with the name of the process? When I encapsulate the cdb.exe call in a batch file, it starts well, but remains blocked when searching for a character. I have to do Ctrl + C to stop the batch, then a mini-drive is created with the correct process name ... but, of course, I cannot configure such a thing in an automatic working environment ...

Has anyone done this before?

+3
source share
1 answer

it starts well, but remains blocked when searching for a character.

What is he looking for? You can do "! Sym noisy" to enable noisy output about character loading. However, it should not be blocked forever, but ultimately it must expire. If you correct your symbol path, this will help too. You can set your symbol path to nothing, then it cannot be blocked by loading symbols from anywhere.

About creating a dump with the process name, my colleague (Jeremy) suggested this on the cdb / ntsd command line:

-c ".foreach( obj { lm 1m a @$exentry; } ) { .dump /m /u ${obj}.dmp;.dump /ma /u ${obj}.dmp; }; q"

: ", @$exentry, $exentry, for."

LocalDumps (WER):

http://msdn.microsoft.com/en-us/library/bb787181(VS.85).aspx

, , . DumpType 0 CustomDumpFlags 0x1B65.

, : " WER. , WER WER , Microsoft.

, LocalDumps .

+2

Source: https://habr.com/ru/post/1715517/


All Articles