How do I change the locations of source files in a symbols file (pdb)

后端 未结 4 1854
旧时难觅i
旧时难觅i 2020-12-14 17:25

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

4条回答
  •  感情败类
    2020-12-14 17:37

    It is certainly possible, as On Freund has already pointed out. But if it is only so that the sources can be located and loaded during debugging, then a better way would be to set the source path correspondingly. Once set in a debugger, it will preemt all hard coded paths inside PDBs.

    In windbg (for instance):

    .srcpath+ path_to_source_root
    or this (in case you're debugging remotely):
    .lsrcpath+ path_to_source_root

提交回复
热议问题