vs2015加载符号慢,请问怎么解决

majy14 2016-04-04 09:16:30









我写的openCV的程序,运行一下要1秒多,但是我要求实时性,1秒太长了,就算用Matlab跑一样的算法也只要0.5秒,所以我相信C++至少应该比0.5秒短。运行的时候发现左下角就一直闪这些“正在加载。。。的符号”,尽管这些.dll我一个都不认识,也不是我自己加进去的,目测有30+个。
大概两个星期前,那时我用vs2013也遇到了同样的问题,当时卸载vs并且装了vs2015,刚装上能瞬间调试出来,后来也出现了这个问题。
跪求懂的人赐教!万分感谢!如果我不调试只运行能不能禁止加载符号?这个东西真的好烦啊....
...全文
9219 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_40980746 2019-05-24
  • 打赏
  • 举报
回复
引用 8 楼 Jack_Stan的回复:
打开VS的【工具】-【选项】-【调试】-【常规】 1.取消“调试时启用诊断工具”。 2.取消“在调试过程中显示运行时间”。
果然快了很多啊,刚学习的小白感激不尽
szuerhnw 2018-07-04
  • 打赏
  • 举报
回复
亲测,对的
引用 1 楼 qq423399099 的回复:
打开VS的【工具】-【选项】-【调试】-【符号】
1、先取消勾选“Microsoft符号服务器”
2、清空符号缓存
3、重启VS
-------------------------------------------------------------------------------------------------------
试试VS官方论坛上提到的解决方法:
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.
Amanda-510 2017-06-21
  • 打赏
  • 举报
回复
楼主解决了吗?我用VS调用Python也出现了这样的问题,求指点
majy14 2016-12-01
  • 打赏
  • 举报
回复
最后没试出来,但现在课题转到Android上了,好久没用VS了。。。
Jack_Stan 2016-10-12
  • 打赏
  • 举报
回复
打开VS的【工具】-【选项】-【调试】-【常规】 1.取消“调试时启用诊断工具”。 2.取消“在调试过程中显示运行时间”。
qq_35641775 2016-07-18
  • 打赏
  • 举报
回复
楼主解决了这问题了吗??求分享经验,我也遇到了这个问题,很苦恼
赵4老师 2016-04-04
  • 打赏
  • 举报
回复
同意5楼
stephen_csdn 2016-04-04
  • 打赏
  • 举报
回复
运行时加载动态库啊'嫌慢可以换成静态库啊
無_1024 2016-04-04
  • 打赏
  • 举报
回复
编译release版本呗 就没有符号加载了
majy14 2016-04-04
  • 打赏
  • 举报
回复
看了一下,vs加载了好多好多dll啊,是不是很多没必要加载的都加载上了啊?
majy14 2016-04-04
  • 打赏
  • 举报
回复
引用
引用 1 楼 qq423399099 的回复:
打开VS的【工具】-【选项】-【调试】-【符号】 1、先取消勾选“Microsoft符号服务器” 2、清空符号缓存 3、重启VS ------------------------------------------------------------------------------------------------------- 试试VS官方论坛上提到的解决方法: 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.
我本来就没有从符号服务器加载的。 谢谢。
小灸舞 2016-04-04
  • 打赏
  • 举报
回复
打开VS的【工具】-【选项】-【调试】-【符号】
1、先取消勾选“Microsoft符号服务器”
2、清空符号缓存
3、重启VS
-------------------------------------------------------------------------------------------------------
试试VS官方论坛上提到的解决方法:
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.

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧