Reputation: 42593
I have windbg registered as postmortem debugge (via -I
command-line switch) and all works fine for non-elevated applications. But if elevated applications crashes, windbg
starts and displays "Could not attach to process. Access is denied" error. Is it possible to somehow configure windbg
so it will work as postmortem debugger for elevated apps?
Upvotes: 1
Views: 1154
Reputation: 3192
Since you mentioned that it's an x86 app on an x64 system, you need to set these regkeys in Wow6432Node:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug]
"UserDebuggerHotKey"=dword:00000000
"Debugger"="\"C:\\debuggers\\windbg.exe\" -p %ld -e %ld -g"
"Auto"="1"
Note that these are both string values (REG_SZ
) and I'm assuming that the windbg.exe is installed in C:\debuggers
. Change that as appropriate.
Upvotes: 1