Visual Studio 2015 RTM - 调试不工作 [英] Visual Studio 2015 RTM - Debugging not working

查看:569
本文介绍了Visual Studio 2015 RTM - 调试不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了VS 2015 RTM(没有别的),我无法调试任何解决方案,无论是现有的还是全新的(使用VS 2015创建并编译为.Net Framework 4.6),它只能在VS中打开一个新的标签,这个标签叫做Break模式,文本如下:
应用程序处于中断模式
您的应用程序已进入中断状态,但没有执行所选代码调试引擎(例如,仅执行本机运行时代码)。
如果我检查调试 - >模块窗口:
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.

BTW:在VS中调试2013年的工作正常。

BTW: Debugging in VS 2013 is working fine.

任何帮助将不胜感激。

推荐答案

在我的情况下,此解决方案很有用:

In my case this solution is useful:

解决方案:在调试/常规设置中禁用Just My Code选项。

Solution: Disable the "Just My Code" option in the Debug/General settings.

参考: c-sharpcorner

这篇关于Visual Studio 2015 RTM - 调试不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆