您的位置:首页 > 其它

[VS调试]VS2010 VS2012调试时显示加载符号导致调试特别慢

2014-04-22 09:16 441 查看
下午睡多了,编个小程序(探索形式)搞到现在,遇到一个不爽的问题就是调试时加载很慢,这次百度终于解决了。

打开”调试”–>”选项”看下图:



将那个”勾”去掉确定即可!按下F5调试,瞬间开始了。



如果还有问题,可以试试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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: