c++ - 'Source Stamping' 是如何工作的?

标签 c++ visual-studio visual-c++ pdb

在 Bungie 的演示文稿(Bungie 农场的生活)中,提到了 Visual Studio 中名为“Source Stamping”的功能。我想阅读更多有关该主题的信息,但很难在 MSDN 上找到相关信息。

"We also use a feature of Visual Studio called source stamping, which is a linker setting that is used to specify the final location on a server of the version of the source code that was used to build a certain set of binaries. The source is copied up to that location when the build finishes, and since that location is stamped into the pdbs Visual Studio knows that when it is debugging a build off the build site, it should pull the source from that location to use while stepping through the code. "

我正在寻找的是一些描述相关链接器设置的信息,以设置类似的构建/调试环境。

补充我的问题。我可能有点早熟。我仔细阅读的演示文稿中的一部分提到了确切的链接器设置/SOURCEMAP。但这似乎没有记录。

最佳答案

此功能称为 Source Server ,其中使用源服务器页面上列出的工具和脚本将提取正确源修订版所需的信息嵌入到 PDB 中。

使用此系统,只要您有权访问项目的私有(private)(未剥离的)PDB,您的调试器就可以从版本控制系统中检索原始源文件。支持的系统包括 Team Foundation Server、Perforce、Visual SourceSafe、CVS 和 Subversion。

关于c++ - 'Source Stamping' 是如何工作的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8451560/

相关文章:

c++ - 连接 QTreeWidgetItem 时出错

visual-studio - 无法在我的 MSI 中创建正确的文件夹结构

windows - 具有重复键的 INI 文件

visual-studio - TFS 2013 默认构建模板不会丢失源项目

c++ - LNK2019,LPCTSTR和C++语法概述

c++ - 嵌套模板类语法错误 (MSVC)

c++ - TDM-GCC w64 脚本更改 32 位的 windres?

c++ - 在 C++ 中重载函数

c++ - 是否可以在Windows XP下用普通的C++程序覆盖代码段?

c++ - 基于范围的循环的 BOOST_FOREACH 和 c++11 之间的区别?