“源标记”是如何实现的?工作?

发布于 2024-12-20 09:00:59 字数 449 浏览 2 评论 0原文

在 Bungie 的演示中(A Life on a Bungie Farm)提到了 Visual Studio 中名为“源标记”的功能。我想阅读有关该主题的更多信息,但事实证明在 MSDN 上查找相关信息很困难。

“我们还使用 Visual Studio 的一项称为源标记的功能,这是一种链接器设置,用于指定用于构建特定二进制文件集的源代码版本在服务器上的最终位置。构建完成后,源代码将被复制到该位置,并且由于该位置被标记到 pdbs 中,因此 Visual Studio 知道当它在构建站点之外调试构建时,它应该从该位置提取源代码以在单步执行时使用代码。 ”

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

为了补充我的问题。我可能有点不成熟。我在演示文稿中介绍的一部分-read 提到了确切的链接器设置 /SOURCEMAP 但这似乎没有记录。

In a presentation by Bungie (A Life on a Bungie Farm) a feature in Visual Studio named 'Source Stamping' is mentioned. I would like to read a bit more information on that subject but finding related information on MSDN proofed to be difficult.

"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.
"

What I am looking for is some information that describes the linker setting(s) in question to setup a similar build/debug-environment.

To complement my question. I may have been a bit premature. A part in the presentation that I over-read mentions the exact linker setting /SOURCEMAP. But this appears to be undocumented.

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

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

发布评论

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

评论(2

哭了丶谁疼 2024-12-27 09:00:59

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

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

This feature is called Source Server, where the information needed to extract the right source revision is embedded into the PDB using the tools and scripts listed on the Source Server page.

Using this system, as long as you have access to the private (unstripped) PDBs for your project, your debugger can retrieve the original source file from your version control system. Supported systems are Team Foundation Server, Perforce, Visual SourceSafe, CVS, and Subversion.

幸福丶如此 2024-12-27 09:00:59

我不知道具体细节,但编译器很可能将源代码的一些加密质量哈希放入可执行文件中。

(想象一下,您将在可执行文件中添加编译后的源代码的 md5sum - 或更好的值)。

I don't know the specific details, but the compiler can very probably put some cryptographic quality hash of the source code in the executable.

(Imagine that you'll add in the executable the md5sum -or better- of a source code compiled in).

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