VS2015项目不再在调试模式下运行 [英] VS2015 Project no longer runs in debug mode

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

问题描述

这是什么,当我在调试配置中运行我报复。

我得到了这个展现方式是通过启用仅我的code,并警告如果上市没有用户code。这一点,最近发生在我们的项目,我不知道我们做了什么导致此。但我已经无法修复。破发点,将不会触发快速手表给奇怪的结果。

我试着在Google上搜寻这个问题,但没有一个标准的破发点,将不会触发解决方案的工作。我所有出出主意。

更新:我已经检查了配置管理,每一个项目也被设置为调试那里。

更新2 :我关掉启用Optimaizations,我不再让您正在调试发布版本对话框。它运行,然后再次停在破发点!但是在输出窗口显示该在启动:

  

没有加载符号模块Navigo.exe。

     
      
  1. 使用调试版本配置或禁用调试选项启用仅我的code'。
  2.   
  3. 检查下调试选项的符号设置。
  4.   

因此​​,这解决了不再能够使用断点和弹出我的首要问题。这是因为我想你需要断点工作加载符号奇怪。那么,怎样才能如果没有加载符号破发点的工作?也许这只是一个坏消息?

解决方案

使用配置管理器来检查实际设置是干什么用的调试配置 - 它在生成\配置管理器在主菜单 - 如果它们被设置为使用版本:

此外,确保该项目被正确定义DEBUG,ABD是优化code没有被选中:

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

The way I got the this to show was by enabling "Just My Code" and Warn if no 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. Break points 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 ideas.

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

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

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

  1. Use a debug build configuration or disable the debug option 'Enable Just My Code'.
  2. Check the 'Symbols' settings under debugging options.

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 break points work if the symbols aren't loaded? Maybe it's just a bad message?

解决方案

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

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

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

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