Visual Studio 2015项目不再以调试模式运行 [英] Visual Studio 2015 project no longer runs in debug mode

查看:212
本文介绍了Visual Studio 2015项目不再以调试模式运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使在调试配置中运行,这也是我得到的:

This is what I get even when I run in the Debug configuration:

我要显示的方式是启用 Just My Code 并警告是否在启动时没有任何用户代码。这是我们项目最近发生的事情,我不确定我们是怎么做的。但是我无法修复它。断点不会触发,快速监视会给出奇怪的结果。

The way I got this to show was by enabling "Just My Code" and warn if there isn't any user code on launch. This is something that recently happened to our project, and I'm not sure what we did to cause this. But I've been unable to fix it. Breakpoints won't fire and quick watch gives weird results.

我已经尝试过搜索问题,但是没有标准的断点不会触发解决方案工作了。我全都没主意。

I've tried googling the issue, but none of the standard "break points won't fire" solutions have worked. I'm all out of ideas.

我检查了配置管理器,每个项目也都设置为Debug。

I've checked the configuration manager and every project is also set to Debug there as well.

我关闭了启用优化功能,但我不再得到您正在调试发布版本对话框。它再次运行并在断点处停止!但是,输出窗口在启动时将显示以下内容:

I turned off "Enable Optimaizations", and I no longer get the "you are debugging a Release build" dialog. It runs and stops on breakpoints again! However the output window displays this at start up:


模块 Navigo.exe的符号未加载。

Symbols for the module 'Navigo.exe' were not loaded.


  1. 使用调试构建配置或禁用调试选项启用我的代码。

  2. 检查符号


因此,这解决了我的 primary 问题不再能够使用断点和弹出窗口。这很奇怪,因为我认为您需要加载符号才能使断点正常工作。如果没有加载符号,断点如何工作?

So this solves my primary problem of no longer being able to use breakpoints and the popup. Which is odd since I thought you needed symbols to be loaded for breakpoints to work. So how can the breakpoints work if the symbols aren't loaded? Maybe it's just a bad message?

推荐答案

使用配置管理器检查Debug配置的实际设置是什么-可能是一个坏消息?菜单 Build Configuration Manager ... -如果它们设置为使用 Release

Use the Configuration Manager to check what the actual settings are for the Debug configuration - it's at menu BuildConfiguration Manager... - in case they are set to use Release:

此外,请确保项目正确定义了 DEBUG ,并且未选中优化代码:

Also, make sure the project is defining DEBUG correctly, and that "Optimize Code" is not checked:

这篇关于Visual Studio 2015项目不再以调试模式运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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