如何更改符号文件(pdb)中源文件的位置 [英] How do I change the locations of source files in a symbols file (pdb)

查看:329
本文介绍了如何更改符号文件(pdb)中源文件的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上我想做的是这样的:一个pdb文件包含一个源文件的位置(例如 C:\dev\proj1\helloworld.cs ) 。是否可以修改该pdb文件以使其包含不同的位置(例如 \more\differenter\location\proj1\helloworld.cs )?

解决方案

您可以使用Windows调试工具的源索引功能,这将保存对文件的相应修订版本的引用您的源存储库作为PDB文件中的备用流。


Basically what I want to do it this: a pdb file contains a location of source files (e.g. C:\dev\proj1\helloworld.cs). Is it possible to modify that pdb file so that it contains a different location (e.g. \more\differenter\location\proj1\helloworld.cs)?

解决方案

You can use the source indexing feature of the Debugging Tools for Windows, which will save references to the appropriate revisions of the files in your source repository as an alternate stream in the PDB file.

这篇关于如何更改符号文件(pdb)中源文件的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆