如何读取PDB源路径 [英] How to read source path from pdb

查看:417
本文介绍了如何读取PDB源路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你怎么能看用于编译PDB在.NET(C#)环境中的源路径?

How can you read the source paths used to compile a pdb in .NET (C#) environment?

推荐答案

PDF格式格式不记录 - 但有一个API从MS称为DIA提供了多种方法来处理PDB。它是基于COM的...详情请见 MSDN 。 PDB文件通常包含文件名和linenumbers但我不知道他们总是包含完整路径源。

The pdf format is NOT documented - but there is an API from MS called DIA which provides several methods to deal PDB. It is COM-based... for details see MSDN. PDB files usually contain filenames and linenumbers BUT I am not sure that they always contains full path to the source.

在PDBS一些有趣的信息,可以发现的此处

Some interesting information on PDBs can be found here.

如果你想要一些.NET源代码处理.PDBs看到的 Mono.Cecil能做到 和ESP。命名空间 Mono.Cecil.Pdb

IF you want some .NET source code dealing with .PDBs see Mono.Cecil and esp. the namespace Mono.Cecil.Pdb .

16年2月12日更新

微软已经开放了采购PDB格式。信息可以在自己的github回购这里

Microsoft has been open-sourcing the PDB format. Information can be found in their github repo here.

这篇关于如何读取PDB源路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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