显示“跳过加载"的符号状态对于模块窗口中的 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:
未加载模块名称"的符号.
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...
如果我查看 in
,我会看到 dll
和它对应的 .pdb
文件.
If I look in the in
I see the dll
and it's coresponding .pdb
file.
检查项目的构建菜单我可以看到Debug Info: full
.
Checking the build menu for the project I can see Debug Info: full
.
长话短说,我觉得一切都很好,只是它没有加载任何符号.
Cut a long story short everything looks fine to me except 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.
推荐答案
在痛苦地比较两个项目文件后,一个有效,一个无效,我注意到有效的项目有:
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>
通过将
属性设置为 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屋!