PostSharp、PDB调试和引用的程序集
当使用带有正确 PDB 信息的引用程序集的 PostSharp 时(使用 chkmatch 检查),VStudio 构建和编译后过程会丢失调试信息,这似乎很奇怪,并且在 vstudio 构建后使用 chkmatch 比较程序集时出现以下错误。
错误:在可执行文件中找不到调试信息。
因此它不会进入该程序集的调试。
Post Sharp 是否正确写回程序集而不破坏 PDB 位置偏移信息,因为我在 PostSharp 使用十六进制编辑器写回 DLL 时没有看到有效的偏移信息,解决方法是什么?
When using PostSharp with a Referenced Assembly with proper PDB info( checked with chkmatch), it seems strange that the debug info gets lost by VStudio build and post compile process and I get the following error by using chkmatch to compare the assembly after the vstudio build.
Error: Debug information not found in the executable.
So it doesn't step into for debugging into this assembly.
Does Post Sharp properly writes back the Assemblies without destroying the PDB location offset info as I saw no valid offset info in the written back into DLL by PostSharp using Hex Editor and What's the workaround for this ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,PostSharp 写回 PDB 文件(经过适当的转换),因此 Visual Studio 应该没有问题。我不知道出了什么问题;也许你可以尝试手动加载它们(在 VS 的模块窗口中),看看会发生什么。
Yes, PostSharp writes back PDB files (with proper transformations), so there should be no problem with Visual Studio. I don't know what could be wrong; maybe you could try to load them manually (in the Module window of VS) and see what happens.