[英]How can I load SOS in Visual Studio 2017 in Immediate Window in C#?
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 '.' 错误CS1525:无效的表达式术语“。”
or .loadby or !load or load or .Load etc. 或.loadby或!load或load或.Load等。
Based on article 根据文章
https://blogs.msdn.microsoft.com/vijaysk/2007/11/15/sos-your-visual-studio/ https://blogs.msdn.microsoft.com/vijaysk/2007/11/15/sos-your-visual-studio/
The procedures shown in this topic require that you have the Windows Driver Kit integrated into Visual Studio. 本主题中显示的过程要求您将Windows Driver Kit集成到Visual Studio中。 To get the integrated environment, first install Microsoft Visual Studio, and then install the Windows Driver Kit (WDK). 要获得集成环境,请首先安装Microsoft Visual Studio,然后安装Windows驱动程序工具包(WDK)。 For more information, see Windows Driver Development. 有关更多信息,请参见Windows驱动程序开发。 In Visual Studio, you can enter debugger commands in the Debugger Immediate Window. 在Visual Studio中,可以在“调试器立即窗口”中输入调试器命令。 To open the Debugger Immediate Window, from the Debug menu, choose Windows>Immediate. 要打开Debugger立即窗口,请从Debug菜单中选择Windows> Immediate。
Source: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/entering-debugger-commands-in-visual-studio 来源: https : //docs.microsoft.com/zh-cn/windows-hardware/drivers/debugger/entering-debugger-commands-in-visual-studio
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.