“查找源”的映射在哪里?存储在 Visual Studio 中?

发布于 2024-09-24 13:53:34 字数 106 浏览 2 评论 0原文

当用户浏览到源位置时(因为 PDB 来自非本地构建),该映射存储在哪里?

如果它在 .suo 中,是否有任何方法可以以编程方式添加映射? (因为在这种情况下无论如何都会生成 sln)

When the user browses to the source location (because PDBs are from a non-local build), where is that mapping stored?

If it's in the .suo, is there any way to programmatically add a mapping? (as the sln is generated in this case any way)

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

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

发布评论

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

评论(1

金橙橙 2024-10-01 13:53:34

最好看看他们所谓的“源服务器”,这是一个用词不当的地方,因为它实际上只是添加了有关如何从 VCS 获取源代码到 PDB 文件的信息。您可以查看 MSDN 杂志文章 源服务器帮助您消除 Visual Studio 2005 中的错误,或者您可以在索引中查找 SrcSrv 来查找调试工具对于 Windows 帮助。

根据杂志文章,您还需要在构建箱上安装 Perl(显然是文章作者自己构建的!),但值得庆幸的是,它应该可以与 Subversion、CVS 甚至开箱即用地一起工作Perforce——不仅仅是 Visual Source Safe——所以您很有可能不必自己编写任何 Perl。 (不是说 Perl,但我猜你不太了解它或根本不了解它——我是一个 *nix 爱好者,而且我自己也不太流利。)即使你使用一些 VCS不支持开箱即用,很可能其他人已经编写了所需的 Perl 并将其发布在他们的博客上。

It might be a better idea to just look into what they call "Source Server", which is something of a misnomer as it actually just adds information about how to get sources from your VCS to the PDB files. You could look at the MSDN magazine article Source Server Helps You Kill Bugs Dead In Visual Studio 2005, or you could just look up SrcSrv in the index for the Debugging Tools For Windows help.

According to the magazine article, you also need to install Perl on the build box (the author of the article apparantly built it himself!), but thankfully it is supposed to work out-of-the-box with Subversion, CVS, or even Perforce -- not just Visual Source Safe -- so there's a good chance you wouldn't have to write any Perl yourself. (Not to dis Perl, but I'm guessing you don't know it very well or at all -- I'm a *nix lover, and I'm not exactly fluent myself.) And even if you use some VCS that isn't supported out-of-the-box, it's quite possible someone else has already written the needed Perl and posted it on their blog.

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