简体   繁体   English

Visual Studio:通过注册表配置Symbol Server

[英]Visual Studio: Configure Symbol Server via Registry

Setting up Symbol Server in Visual Studio involves a lot of clickety-clack: 在Visual Studio中设置Symbol Server涉及很多clickety-clack:

  1. Go to Tools -> Options -> Debugger -> General. 转到工具->选项->调试器->常规。
  2. Uncheck “Enable Just My Code (Managed only)”. 取消选中“仅启用我的代码(仅受管理)”。
  3. Uncheck “Enable .NET Framework source stepping”. 取消选中“启用.NET Framework源代码步进”。 Yes, it is misleading, but if you don't, then Visual Studio will ignore your custom server order (see further on). 是的,这具有误导性,但是如果您不这样做,则Visual Studio将忽略您的自定义服务器顺序(请参见进一步)。
  4. Check “Enable source server support”. 选中“启用源服务器支持”。
  5. Uncheck “Require source files to exactly match the original version” 取消选中“要求源文件与原始版本完全匹配”
  6. Go to Tools -> Options -> Debugger -> Symbols. 转到工具->选项->调试器->符号。
  7. Select a folder for the local symbol/source cache. 为本地符号/源缓存选择一个文件夹。
  8. Add symbol servers under “Symbol file (.pdb) locations”. 在“符号文件(.pdb)位置”下添加符号服务器。

Is there any way to automate this rigamarole with a simple REG file or somesuch? 有没有什么方法可以使用简单的REG文件或类似方法自动执行此rigamarole?

Solved now (see how Unplugged does it): 现在已解决(请参阅如何拔出插头 ):

Windows Registry Editor Version 5.00 Windows注册表编辑器版本5.00

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Debugger]
"JustMyCode"=dword:00000000
"UseSourceServer"=dword:00000001
"UseDocumentChecksum"=dword:00000001
"SymbolUseMSSymbolServers"=dword:00000000
"FrameworkSourceServerName"="http://referencesource.microsoft.com/symbols"
"PublicSymbolServerName"=""
"PublicSymbolServerName2"=""
"SymbolPath"="http://beta.unpluggedhq.com/symbols"
"SymbolPathState"="1"
"SymbolCacheDir"="c:\symbols"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过代码配置Visual Studio“安装项目” - Configure Visual Studio “Setup Project” via code 符号服务器实用程序在Visual Studio中位于哪里? - Where is symbol server utility located in Visual Studio? Nuget 带有 ARTifactory 的 Visual Studio 中的符号服务器不工作 - Nuget Symbol Server in Visual Studio with ARtifactory is not working 通过在 Visual Studio 中调试期间忽略的注册表项链接到 DLL - Linking to DLL via registry key ignored during debugging in Visual Studio Visual Studio 添加 Azure DevOps 服务器(本地)作为符号服务器 - Visual Studio add Azure DevOps Server (on prem) as Symbol Server 无法从Visual Studio访问VSTS符号服务器中发布的符号 - Unable to access symbols published in VSTS Symbol server from visual studio 如果获得基本身份验证,Visual Studio是否可以访问TeamCity符号服务器? - Can Visual Studio access TeamCity symbol server if basic auth is rquired? 如何为Visual Studio Team Services设置符号服务器 - How to set up a symbol server for Visual Studio Team Services Visual Studio 2008是否支持自定义HTTP符号服务器? - Does Visual Studio 2008 support custom HTTP symbol server? 从Visual Studio中的符号服务器加载与正则表达式匹配的特定符号 - Loading Specific Symbols from a Symbol Server in Visual Studio that match a regex
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM