内建支持优化或没有调试信息 [英] Built with optimizations enabled or without debug information

查看:206
本文介绍了内建支持优化或没有调试信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在试图找出为什么我的 InjectableAttributes永远不会滤光片部分结果
我为此在源项目直接挂钩,所以我可以很容易地把断点等结果
然而,当我建立我得到以下信息:

I'm currently trying to find out why my InjectableAttributes never get to the filter part.
Therefor I linked in the source project directly so I could easily put breakpoints etc.
When I build however I get the following message:


The following module was built either with optimizations enabled or without debug information: 
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\[a bunch of randomly named directories]\assembly\[more random names]\MvcTurbine.Web.DLL]

To debug this module, change its project build configuration to Debug mode. To suppress this message, disable the 'Warn if no user code on launch' debugger option.



我检查项目的属性。它的配置设置为活动(调试)和优化代码复选框被选中。

I checked the project's properties. It's configuration is set to "Active(Debug)" and the "Optimize code" check box is unchecked.

更新我检查了一遍,如果我不意外结果
包含文件而不是项目,而是引用似乎是正确的。结果
只是可以肯定我也删除所有现有的合并,使所有的库肯定的地方重建,但都无济于事。

UPDATE
I checked again if I didn't by accident include the file rather then the project, but the references seem correct.
Just to be sure I also removed all existing bins so that all libraries are definitely rebuild somewhere, but to no avail.

更新结果
在高级构建窗口调试输出设置为全双工和所有的选项都是相同的,正在建设调试信息。结果
上的配置管理器项目表明该项目正在兴建,并具有完全相同的设置,所有其他选项。

UPDATE
In the advanced Build window the Debug output is set to Full and all options are identical to projects that are building debug info.
The config manager shows that the project is being built and has the exact same settings as all the other options.

更新结果
在在调试 - > Windows的模块窗口涡轮库符号状态 PDB文件不匹配的图像我删除了所有对应的我的整个系统上的PDB文件,以确保它得到重新生成,但无济于事。结果
。要确保我还关注的dll我整个系统并删除它们。什么也没有。

UPDATE
In the Debug->Windows-Modules window the symbol status for the turbine library is PDB file does not match image I removed all corresponding pdb files on my entire system to make sure it gets re-generated, but to no avail.
To make sure I also searched for the dll on my entire system and removed them. Nothing.

有什么可以阻止VS从创建调试信息?

What can be preventing VS from creating debug information?

推荐答案

我刚刚经历过同样的问题,今天上午,使用VS2010。我解决它通过删除所有版本的文物,例如可执行文件,库,PDBS等,这是\bin\Debug,\bin\Release,\obj\Debug和\obj\Release(包括子文件夹)。然后我重新编译调试配置,并回到了生意。

I've just experienced the same problem this morning, using VS2010. I solved it by deleting all the build artefacts, e.g. executables, libraries, PDBs, etc. This was in \bin\Debug, \bin\Release, \obj\Debug, and \obj\Release (including sub-folders). Then I recompiled the debug configuration, and was back in business.

这篇关于内建支持优化或没有调试信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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