gpt4 book ai didi

version-control - MS 源服务器 : significance of srcsrv. ini 变量

转载 作者:行者123 更新时间:2023-12-04 07:13:59 25 4
gpt4 key购买 nike

MS 源服务器技术使用名为 srcsrv.ini 的初始化文件。其中一个值标识源服务器位置,例如,

MYSERVER=\\machine\foobar

文档对这个值没有给出答案。首先,我无法找到值名称的意义,即左侧是什么——而且我没有看到它在其他任何地方使用。 Hewardt & Pravat 在 Advanced Windows Debugging说“左侧......代表项目名称”,但这似乎与 MS 的“MYSERVER”示例不符。

左边的意义是什么?还用在什么地方?该值是引用服务器还是项目,是每个服务器一个,还是每个项目一个?

最佳答案

对于将来研究此问题的任何人,我从 MS 收到以下信息:

The name on the left side is the logical name of a version control server. The name is also used in the source-indexed symbol files (pdb). For example, a symbol file may contain this string value:

  MYSERVER=mymachine1.sys-mygroup.corp.microsoft.com:2003

and the source files are referenced like this in pdb:

  *MYSERVER*/base/myfolder/mycode.c

When SrcSrv starts, it looks at Srcsrv.ini for values; these values override the information contained in the .pdb file:

  "MYSERVER=mymachine.sys-mygroup.corp.microsoft.com:1666" overrides
  "MYSERVER=mymachine1.sys-mygroup.corp.microsoft.com:2003"

This enables users to configure a debugger to use an alternative source control server at debug time. The info is documented at http://msdn.microsoft.com/en-us/library/ms680641.aspx.



因此,它是源服务器的逻辑名称,可以在调试时更改其值以引用与创建 PDB 时最初使用的服务器不同的服务器。

关于version-control - MS 源服务器 : significance of srcsrv. ini 变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/292480/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com