如何在.NET程序集中找到相应的.pdb?

编程入门 行业动态 更新时间:2024-10-25 23:20:57
本文介绍了如何在.NET程序集中找到相应的.pdb?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

显然,当.NET程序集被创建时,相应的.pdb文件路径的位置被包含在里面。链接供参考: msdn.microsoft/en -us / library / ms241613.aspx

如何访问?我试过使用ILSpy来查看我的程序集,但找不到。

解决方案

您可以使用 dumpbin 工具从开发人员命令提示符,例如一个这样的cmd行

dumpbin / HEADERS YourAssembly.exe

将显示调试目录部分中PDB文件的路径,类似于此

Microsoft(R)COFF / PE Dumper版本14.00.24213.1 版权所有(C)Microsoft Corporation。版权所有。 文件转储YourAssembly.exe ... 调试目录 时间类型大小RVA指针 -------- ------- -------- -------- -------- 570B267F cv 11C 0000264C 84C格式:RSDS,{241A1713-D2EF-4838-8896-BC1C9D118E10},1, C:\temp\VS\obj\Debug\YourAssembly.pdb ...

Apparently, when a .NET assembly is created the location of the corresponding .pdb file path is included inside. Link for reference: msdn.microsoft/en-us/library/ms241613.aspx

How do I access this? I have tried using ILSpy to look inside my assembly but could not find.

解决方案

You can use the dumpbin tool from a Developer Command Prompt, e.g. a cmd line like this

dumpbin /HEADERS YourAssembly.exe

would show the path to the PDB file in the Debug Directories section similar to this

Microsoft (R) COFF/PE Dumper Version 14.00.24213.1 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file YourAssembly.exe ... Debug Directories Time Type Size RVA Pointer -------- ------- -------- -------- -------- 570B267F cv 11C 0000264C 84C Format: RSDS, {241A1713-D2EF-4838-8896-BC1C9D118E10}, 1, C:\temp\VS\obj\Debug\YourAssembly.pdb ...

更多推荐

如何在.NET程序集中找到相应的.pdb?

本文发布于:2023-11-09 10:11:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1572097.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:程序   如何在   NET   pdb

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!