简体   繁体   English

在 VS2010 中启用然后禁用“启用 .NET 框架源步进”后调试步进不起作用

[英]Debug stepping not working after enabling then disabling “Enable .NET Framework source stepping” in VS2010

I'm fairly new to programming and IDEs in general.一般来说,我对编程和 IDE 还很陌生。 I was messing around in [Tools] [Options] [Debugging] in VS2010 and now my program is not stepping through the code as it was previously.我在 VS2010 的 [Tools] [Options] [Debugging] 中乱七八糟,现在我的程序没有像以前那样单步执行代码。 I checked the "Enable .NET Framework source stepping" option and then it attempted to dowload symbols.我检查了“启用 .NET 框架源步进”选项,然后它尝试下载符号。 Then I unchecked this option and now my program will not step back into the Form1 code after the form launches and a button is clicked.然后我取消选中此选项,现在我的程序在表单启动并单击按钮后不会退回到 Form1 代码。 Thanks for the help.谢谢您的帮助。

In the same settings, is "Enable Just My Code (Managed Only)" checked?在相同的设置中,是否选中了“仅启用我的代码(仅限托管)”? When you check "Enable .NET Framework source stepping", VS2010 will uncheck the other option (they are mutually exclusive).当你勾选“Enable .NET Framework source stepping”时,VS2010会取消勾选另一个选项(它们是互斥的)。

Make sure you're still targeting x86 and try cleaning the project.确保您仍然以 x86 为目标并尝试清理项目。 For the first, right-click solution > properties > configuration properties.首先,右键单击解决方案 > 属性 > 配置属性。 For the second, right-click solution > select clean第二种,右键解决方案>select clean

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM