vs2010调试老是在为.加载符号,特别慢,谁能告诉我怎么回事

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vs2010调试老是在为.加载符号,特别慢,谁能告诉我怎么回事相关的知识,希望对你有一定的参考价值。

参考技术A 试试VS2010官方论坛上提到的解决方法:

You can speed up loading of symbols by doing the following:

1. Verify
that you haven't specified any network shares under
Tools->Options->Debugging->Symbols especially to server that do not
exist anymore. This will require timeouts.

2. Verify and check that
_NT_SYMBOL_PATH or _NT_ALT_SYMBOL_PATH is set to network shares as cg60611
pointed out above.

3. Specify a local cache for symbols in
Tools->Options->Debugging->Symbols. After you have downloaded symbols
once from network shares you can disable those locations. Symbol loading will go
a lot faster after the first attempt.

4. Do not specify any symbol lookup
paths at all eithe in environment variable and specify paths in the options page
but specify that they be used for manual loading. You can then manually load
symbols for modules you care about either via the context menu in callstack or
the modules window.

5. VS 2008 SP1 has made a few improvements in this
area. It allows for cancelling loading of symbols as it is happening. This will
allow you to get to your debug session much faster. Note that this is currently
in Beta.本回答被提问者和网友采纳

遇到了Microsoft Visual Studio is Busy!

技术图片

最近两天,我点击F5进入调试模式,VS左下角状态显示一直在加载符号文件,然后加载的超级慢,不多一会儿,显示VS正忙!如上图所示。

然后的然后,VS就卡死了~~~。之后,在网上查找原因和解决办法,找来找去,也试了不少(重装VS、设置一些内环境),还是不行。

最后解决了,解决如下:

由于前段时间使用Windows调试工具Windbg,中间需要设置什么符号文件路径,和环境变量啥的,我新建了一个环境变量:_NT_SYMBOL_PATH,一般会设置成从http://msdl.microsoft.com/download/symbols 获取相关符号文件到本地的,
vs里面,工具-选项-调试-符号
符号文件.pdb 位置,如果设置过 _NT_SYMBOL_PATH 的话这里会显示着的,
前面那个勾好像去不掉,
直接删了系统环境变量里的_NT_SYMBOL_PATH,重启VS看看吧..

最后,我把该环境变量删除了,就运行ok了~~~

仅供参考!

以上是关于vs2010调试老是在为.加载符号,特别慢,谁能告诉我怎么回事的主要内容,如果未能解决你的问题,请参考以下文章

vs2010 C# 当前不会命中断点。还没有为该文档加载任何符号。 求解决

我用的vs2010 调试很慢

我经常在vs2010里调试C#网站程序,但 总报”当前不会命中断点,还没有为该文档加载任何符号。“不知道为什

VS2010:尝试为故障转储加载符号时“找不到匹配的二进制文件”

VS2010调试C的代码老是提示此项目过期

Visual Studio加载符号过慢问题解决