加载SOS扩展进行调试 [英] Load SOS extension for debugging
问题描述
我试图在vB.net应用程序中的visual studio 2010(.Net框架4)中加载SOS扩展名。
I'm trying to load SOS extension in visual studio 2010 (.Net framework 4) in a vb.net app without success.
首先我找到以下内容文章,建议我键入 !载入sos 在immidiate窗口。它导致以下错误消息:
First i found the following article suggesting that I type "!load sos" in the immidiate window. It resulted in the following error message:
Error during command: extension C:\Windows\Microsoft.NET\Framework64\v4.0.30319\sos.dll could not load (error 193)
接下来我发现文章建议 .loadby sos clr 。这给了我以下错误:
Next I found an article suggesting .loadby sos clr. That gave me the following error:
Method arguments must be enclosed in parentheses.
如何加载?
推荐答案
您正在64位版本的Windows上运行。当您的程序为64位时,无法使用sos.dll进行调试,Visual Studio是32位进程。
You are running on a 64-bit version of Windows. Debugging with sos.dll is not possible when your program is 64-bit as well, Visual Studio is a 32-bit process.
修复:项目+属性,编译选项卡,向下滚动,高级,目标CPU = x86。
Fix: Project + Properties, Compile tab, scroll down, Advanced, Target CPU = x86.
这篇关于加载SOS扩展进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!