Visual Studio 不缓存 Microsoft Symbol Server 缓存未命中?

发布于 2024-07-23 15:16:29 字数 203 浏览 2 评论 0原文

我将 Microsoft Symbol Server 与 Visual Studio 2008 结合使用,并且运行良好。 不幸的是,当公共符号服务器不包含符号时​​,需要一段时间才能超时,并且每次我启动项目进行调试时,Visual Studio 都会尝试重新加载相同的缺失符号。

有没有什么方法可以让(或欺骗)Visual Studio 记住“错过”并且暂时不再打扰?

I'm using the Microsoft Symbol Server with Visual Studio 2008 and it's working pretty well. Unfortunately, when the public symbol server doesn't contain the symbols, it takes a while to timeout, and Visual Studio attempts to reload the same missing symbols every time that I start my project for debugging.

Is there any way that I can get (or trick) Visual Studio into remembering the "misses" and not to bother again for a while?

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

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

发布评论

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

评论(2

吃颗糖壮壮胆 2024-07-30 15:16:29

请参阅这篇文章
但似乎您也可以使用 控制符号加载symsrv.ini

(我猜ini文件应该放在...\Microsoft Visual Studio 9.0\Common7\IDE文件夹下)

更新:刚刚找到此链接
使用注册表比 ini 文件方法更好。

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Symbol Server\Exclusions]
"notepad.pdb"=""
"ora*.*"=""

See this post
But it seems you can also control symbols loading with symsrv.ini

(I guess the ini file should go under ...\Microsoft Visual Studio 9.0\Common7\IDE folder)

Update: Just found this link.
Using the registry is better than the ini file approach.

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Symbol Server\Exclusions]
"notepad.pdb"=""
"ora*.*"=""
原来是傀儡 2024-07-30 15:16:29

您可以通过 VS IDE 来完成此操作(我曾在 2005 年、2010 年和 2012 年完成过此操作)。

方法一(推荐):

  • 打开“Modules”窗口(Debug->Windows->Modules)
  • 排序列表
  • 按“Symbol Status”查找并 选择状态为“找不到...”的模块组,
  • 右键单击并选择“自动符号加载设置->始终手动加载”

方法2:

  • 打开“工具->选项”并导航到“调试->加载”。 Symbols”
  • 单击第一个单选按钮(应选择该按钮)下的“指定排除的模块”
  • 将模块名称添加到列表中,然后单击“确定”

You can do this through the VS IDE (I've done this in 2005, 2010 and 2012).

Method 1 (Recommended):

  • Open the "Modules" window (Debug->Windows->Modules)
  • Sort the list by "Symbol Status"
  • Find & select the group of modules with the status "Cannot find..."
  • Right click and select "Automatic Symbol Load Settings -> Always Load Manually"

Method 2:

  • Open "Tools->Options" and navigate to "Debugging->Symbols"
  • Click "Specify excluded modules" under the 1st radio button (which should be selected)
  • Add the module names to the list and click OK
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文