Visual Studio 2015 RTM - 调试不起作用 [英] Visual Studio 2015 RTM - Debugging not working
问题描述
我已经安装了 VS 2015 RTM(没有别的)并且我无法调试任何解决方案,无论它是现有的还是全新的(使用 VS 2015 创建并针对 .Net Framework 4.6 编译),它只在 VS 中打开一个名为 Break Mode 的新选项卡,其中包含以下文本:应用程序处于中断模式您的应用程序已进入中断状态,但没有执行所选调试引擎支持的代码(例如,仅执行本机运行时代码).如果我检查调试 --> 模块窗口:VS2015Test.vshost.exe 没有加载符号(即使我点击加载符号它也不起作用)VS2015Test.exe 符号加载
I have installed VS 2015 RTM (nothing else) and I'm unable to debug any solution, not matter if it's an existing one or a brand new one (created with VS 2015 and compiled against .Net Framework 4.6), it only opens a new tab in VS which is called Break Mode with the following text: The application is in break mode Your app has entered a break state, but no code is executing that is supported by the selected debug engine (for e.g. only native runtime code is executing). And if I check the Debug --> Module Window: VS2015Test.vshost.exe no symbols loaded (even if I click load symbol it does not work) VS2015Test.exe symbols loaded
而且它也没有在控制台上显示输出(它是一个控制台应用程序,只有以下几行代码:
And it also doesn't show the output on the console(it's a console application that just has the following lines of code:
class Program
{
static void Main(string[] args)
{
Console.WriteLine("TEST");
Console.ReadKey();
}
}
我尝试重新安装 VS 2015,重新启动计算机,删除 %temp%/AppData/Microsoft/Visual Studio/14 中的所有文件,在管理员模式下启动 VS 但似乎没有任何效果.
I tried to reinstall VS 2015, restarted the computer, deleted all files in %temp%/AppData/Microsoft/Visual Studio/14, started VS in Admin Mode but nothing seems to work.
使调试工作的一件事是这个选项:工具 --> 选项 --> 调试 --> 使用托管兼容模式
One thing which makes debugging working is this option: Tools --> Options --> Debugging --> Use Managed Compability Mode
^^但这不能成为使用旧/旧模式的解决方案.
^^But that can't be the solution to use an old/legacy mode.
顺便说一句:VS 2013 中的调试工作正常.
BTW: Debugging in VS 2013 is working fine.
任何帮助将不胜感激.
推荐答案
就我而言,这个解决方案很有用:
In my case this solution is useful:
解决方案:在调试/常规设置中禁用仅我的代码"选项.
Solution: Disable the "Just My Code" option in the Debugging/General settings.
这篇关于Visual Studio 2015 RTM - 调试不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!