How to set Visual Studio as the default post-mortem debugger?

前端 未结 2 1379
时光取名叫无心
时光取名叫无心 2020-12-09 11:38

Not too long ago, I had a problem which required me to set WinDbg.exe as the default post-mortem debugger. Now that I\'ve fixed that and am back doing normal work, it would

相关标签:
2条回答
  • 2020-12-09 11:46

    You can re-enable Visual Studio for Just-In-Time debugging from within Visual Studio:

    Go to the Tools | Options | Debugging | Just-In-Time dialog. Then make sure all Native and Managed (if you're debugging a .NET application) are checked. Next time you get a crash, the Visual Studio Just-In-Time debugger will come up.

    The Visual Studio Just-In-Time debugger let's you choose whether you want to open a new instance of Visual Studio or start debugging with a currently open solution.

    0 讨论(0)
  • 2020-12-09 12:07

    from the Microsoft support page:

    1.  Start Registry Editor and locate the following Registry subkey in the HKEY_LOCAL_MACHINE subtree:
    
    \SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\AEDEBUG
    2.  Select the Debugger value.
    3.  On the Edit menu, click String.
    
    •   To use the Windows debugger, type windbg -p %ld -e %ld.
    •   To use Visual C++ 4.2 or earlier, type msvc -p %ld -e %ld.
    •   To use Visual C++ 5.0 or later, type msdev.exe -p %ld -e %ld.
    •   To use Dr. Watson, type drwtsn32.exe -p %ld -e %ld. You can also make Dr. Watson the default debugger by running this command:drwtsn32.exe -i.
    4.  Choose OK and exit Registry Editor. 
    
    0 讨论(0)
提交回复
热议问题