如何跟踪 .Net Native 加密的堆栈跟踪?

10

由于UWP需要.Net Native(非常欢迎),我现在遇到了一些晦涩的堆栈跟踪。以下是使用我的应用程序报告的异常:

System.InvalidCastException: InvalidCast_Com 
at SharedLibrary!<BaseAddress>+0x429e9d 
at SharedLibrary!<BaseAddress>+0x47d878 
at SharedLibrary!<BaseAddress>+0x48455a 
at SharedLibrary!<BaseAddress>+0x499043 
at SharedLibrary!<BaseAddress>+0x498fb7 
at SharedLibrary!<BaseAddress>+0x5ea468 
at SharedLibrary!<BaseAddress>+0x5ea418 
// this goes on...

我知道某处存在无效的转换...但我需要知道SharedLibrary!<BaseAddress>+0x429e9d指向什么。

有没有办法找到这些链接指向的位置?


3
您需要获取相关库的 .pdb 文件。我没有使用过 .NET Native,但我认为它应该会像其他编译器一样生成 pdb 文件。 - Bryce Wagner
谢谢Bryce,我在bin/release目录中找到了一些.pdb文件。我如何查询这些地址上的文件? - Laith
你找到好的答案了吗? - Eric Liprandi
还没有。我怀疑这不会很容易。也许 .Net Native 团队将来会创建一个工具来帮助我们映射这些地址。 - Laith
你是否尝试在调试菜单中打开所有异常,只是为了看看它是否会直接显示异常? - Netferret
显示剩余3条评论
1个回答

1

StackParser已将at Signal-Windows!<BaseAddress>+0xfd2403转换为at Signal-Windows!RuntimeFunctionSection+0x28403。我是否缺少.pdbs文件,或者这是期望的输出? - Benni
1
听起来像是一个PDB的问题...你确定你正在使用匹配的PDB提供工具吗? - Andrew Au

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接