As Sean Cline suggested in his comment, you probably haven't set WinDbg to be the post-mortem debugger. If you had, WinDbg would launch rather than vsjitdebugger.exe
.
Make sure you really ran windbg.exe -I
from an elevated command prompt. Did you do that and got the following message box?

Edit: Note that on a 64-bit Windows there are separate settings for post-mortem debugger for 64-bit applications and for WOW64 (32-bit) applications. Each version of WinDbg when receiving the -I
flag sets itself as the post-mortem debugger for its own bitness. That is, running
C:\WINDOWS\system32>"C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\windbg.exe" -I
will set ...\x64\windbg.exe
to be the post-mortem debugger for 64-bit applications but will leave vsjitdebugger.exe
as the post-mortem debugger for WOW64 applications.
You can check the current configuration using the REG QUERY
command. and your output should be something like this if you ran windbg.exe -I
:
C:\Users\conio>reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug" /reg:64
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug
UserDebuggerHotKey REG_DWORD 0x0
Debugger REG_SZ "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\windbg.exe" -p %ld -e %ld -g
Auto REG_SZ 1
But it will probably be something like this if you just installed Visual Studio (and didn't run windbg.exe -I
):
C:\Users\conio>reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug" /reg:32
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug
UserDebuggerHotKey REG_DWORD 0x0
Debugger REG_SZ "C:\WINDOWS\system32\vsjitdebugger.exe" -p %ld -e %ld
(The /reg:64
and /reg:32
are required to get the "64-bit registry view" and the "32-bit registry view" respectively regardless of whether you're running %WINDIR%\System32\REG.EXE
or %WINDIR%\SysWOW64\REG.EXE
. This obviously applies only to 64-bit Windows.)
Regarding your question: "Shouldn't it there be windbg for option?"
No. Look at the title. It says "Visual Studio Just-In-Time Debugger". It's not a general utility to choose among different debuggers installed on your system. It just runs Visual Studio, but can choose whether to launch a new instance or use an existing one (and I think it lets you choose VS version if you have several versions installed).