Visual Studio 2010 加载符号所需的时间太长,无法删除符号文件位置

发布于 2024-09-24 02:09:31 字数 658 浏览 2 评论 0原文

Visual Studio 需要花费大量额外时间来加载外部 dll 的符号,而我不想加载这些符号。我摆弄了 VS2008 中的符号设置,这些设置似乎影响了 VS2010

如何阻止它加载第 3 方符号?
我尝试过:

下一步将是 VS 重新安装,如果失败重新安装操作系统,但如果每次按下调试按钮都能节省 14 秒,那就值得了。

Visual Studio takes a lot of extra time loading symbols for external dlls which I'd rather not load. I have fiddled with my symbol settings in VS2008 and these settings seem to be affecting VS2010

How do I stop it loading 3rd party symbols?
I've tried:

  • devenv /resetuserdata
  • Tools > Options > Debugging > Symbols (I can't remove or uncheck the pdb file location of: "Environment Variable: _NT_SYMBOL_PATH")
  • I've cleared the above location like so: set _NT_SYMBOL_PATH=
    actually this made a huge difference (it was previously SRVc:\symbolshttp://msdl.microsoft.com/download/symbols)
  • I've deleted everything from: %localappdata%\Temp\Temporary ASP.NET Files\root\

The next thing would be a VS re-install, failing that an OS re-install, but if it saves me 14 seconds every time I press debug it would be worth it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

卸妝后依然美 2024-10-01 02:09:31

值得尝试的事情

  • 工具 >选项调试>一般的
    • 禁用源服务器支持
    • 仅启用我的代码(刚刚经过测试,大大缩短了我的加载时间)-< a href="http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx">何时禁用
    • 禁用 .NET 框架源代码单步调试(如果选择,则仅自动禁用我的代码)
  • )选项>调试> 符号
    • 仅限指定模块
    • 或者所有模块,除非排除并排除那些第三方
    • 我能够删除 .pdb 位置下的所有检查,但我将 d:\refsrc\symbols 作为添加位置

Things to try

  • Tools > Options Debugging > General
  • Tools > Options>Debugging > Symbols
    • Only Specified Modules
    • Or All modules unless excluded and exclude those 3rd party
    • I was able to remove all checks under .pdb locations, but I had d:\refsrc\symbols as an added location
剩一世无双 2024-10-01 02:09:31

我也有这个烦恼。我认为我没有设置 _NT_SYMBOL_PATH 但不知何故它被设置为我使用 WinDbg 时使用的路径。我通过从 SysInternals Suite 运行 ProcMon 来解决这个问题,并过滤掉除 DevEnv.exe 之外的所有内容,并查看在调试我的应用程序时它试图访问哪些文件。

我删除了 _NT_SYMBOL_PATH 环境,重新启动 VS,一切都按预期运行。

我提供这个并不是为了最初问题中提供的答案,而是作为如何找出问题所在的指导。

I had this trouble too. I did not think that I had set _NT_SYMBOL_PATH but somehow it was set to the path I use when using WinDbg. I figured this out by running ProcMon from the SysInternals Suite and filtered out everything except DevEnv.exe and saw what files it was trying to access when debugging my application.

I deleted the _NT_SYMBOL_PATH environmental, restarted VS and everything runs like it should.

I offer this not so much for the answer which was supplied in the initial question but as guidance on how to figure out what was wrong.

夜未央樱花落 2024-10-01 02:09:31

对于我来说,我之前已经打开了“调试”->“调试”。符号->当我完成某个特定项目时,所有模块都忘记将其关闭。关闭此设置极大地缩短了我的加载时间。

For me, I had previously turned on Debugging -> Symbols -> All modules and forgot to turn it off when I was done with a particular project. Turning off this setting greatly improved my load times.

如梦 2024-10-01 02:09:31

我也有这个烦恼。我很容易修复它。只需执行:调试 -> 选项和设置 -> 符号。在符号中,我选中了仅指定的模块。一切又恢复正常了。希望这有帮助。

I had this trouble too. And I fix it easily. Just do: Debug->Options and Settings->Symbols. In Symbols I checked Only Specified Modules. Everything works fine again. Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文