符号状态显示“已跳过的加载”对于模块窗口中的DLL? [英] Symbol status showing "Skipped Loading" for dll in modules window?
问题描述
我最近将一些解决方案升级到Visual Studio 2013.除了现在生成的一个解决方案之外,一切都没问题了:
I've recently upgraded some solution(s) to Visual studio 2013. All went OK apart from one which now generates the:
未加载模块'name'的符号。
Symbol for the modules 'name' were not loaded.
...每次运行时都会出错。
...error every time I run it.
当我查看模块调试窗口时,我可以看到dll(这是一个web服务dll)
When I look in the modules debug window I can see against the dll (It's a web service dll)
Name Path Optimised User Code Symbol Status
dllName.dll Tempoary ASP.Net...etc. Yes No Skipped Loading...
如果我查看 \ bin
我看到 dll
并且它是相应的 .pdb
文件。
If I look in the \bin
I see the dll
and it's coresponding .pdb
file.
检查项目的构建菜单我可以看到调试信息:完整
。
Checking the build menu for the project I can see Debug Info: full
.
长话短说一切看起来不错,我希望它不会加载任何符号。
Cut a long story short everything looks fine to me expect that it's not loading any symbols.
我知道我缺少什么吗?
看起来如果我运行我的解决方案虽然IIS表示问题消失了。但是运行IIS(8)我仍然有这个问题。
It looks like if I run my solution though IIS express the issue goes away. But running though IIS (8) I still have this problem.
推荐答案
在痛苦地比较两个项目文件之后,一个工作,一个工作,一个那不是我注意到工作的proj有:
After painfully comparing two project files, one that worked and one that didn't I noticed that the proj that worked had:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
**<Optimize>false</Optimize>**
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
我所在的地方
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
**<Optimize>true</Optimize>**
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
设置< Optimize>
属性到 false
所有问题都消失了。
By setting the <Optimize>
property to false
all issues went away.
这答案似乎也相关,因为 .csproj.user
文件可能不同步,我将其删除。
This answer also seems relevant as the .csproj.user
file can be out of sync, I deleted it.
这篇关于符号状态显示“已跳过的加载”对于模块窗口中的DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!