1

I tried this:

    1. Create new Windows WinForm Desktop Application in VS2017. (or console)
    2. Build it and Run as Admin.
    3. Enable Native Debugging, Enable Managed compatibility mode
    4. Pause App by Break All, or break in an breakpoint
    5. Open Immediate Windows and type command:

.load SOS

error CS1525: Invalid expression term '.'

or .loadby or !load or load or .Load etc.

Based on article

https://blogs.msdn.microsoft.com/vijaysk/2007/11/15/sos-your-visual-studio/

justromagod
  • 933
  • 9
  • 20

1 Answers1

0

The procedures shown in this topic require that you have the Windows Driver Kit integrated into Visual Studio. To get the integrated environment, first install Microsoft Visual Studio, and then install the Windows Driver Kit (WDK). For more information, see Windows Driver Development. In Visual Studio, you can enter debugger commands in the Debugger Immediate Window. To open the Debugger Immediate Window, from the Debug menu, choose Windows>Immediate.

Source: https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/entering-debugger-commands-in-visual-studio

Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
justromagod
  • 933
  • 9
  • 20
  • What are you telling us with this citation from https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/entering-debugger-commands-in-visual-studio? Have you also noticed "This feature is not available in Windows 10, version 1507 and later versions of the WDK."? – Thomas Weller Mar 06 '19 at 22:00
  • I have Windows 8 still. So it should work for me. Install WDK and Immediate Windows magically begin understand Debugger commands. I will try – justromagod Mar 07 '19 at 07:38