Launch WinDbg immediately after program crashes

If you watch this Youtube video , you can see that WinDbg is automatically executed when the process dies.

I followed a tutorial and tried to do the same on my system. I first ran windbg -I

and then changed the registry key HKLM\Software\Microsoft\Windows NT\CurrentVersion\AeDebug\Auto

to 0

. Is there any other other step I am missing?

+3


source to share


1 answer


Running the 64-bit version of WinDbg with the command line parameter -I

creates both 64-bit and 32-bit entries AeDebug

. This can be easily checked using Process Monitor:

WinDbg x64 AeDebug creation

The 32-bit version of WinDbg only creates 32-bit entries. So, if you run the 32-bit version, 64-bit programs are not processed. What I expect has happened. Another option is that you ran it without administrative privileges and did not read the error message.



If you want 32-bit and 64-bit crashes to be handled by WinDbg, run WinDbg -I

for both. You will find that WinDbg is smart enough to handle any order:

  • WinDbg32 will overwrite the existing entry created by WinDbg64 before
  • WinDbg64 will not overwrite an existing entry created by WinDbg32 until

While WinDbg64 can debug 32-bit applications, it cannot load 32-bit DLL extensions, so you usually need both debuggers to register a non-64-bit version.

+3


source







All Articles