繁体   English   中英

使用 .NET Native 构建的 UWP 应用程序的符号异常

[英]Symbolicate exception of UWP app built with .NET Native

在侧载 Windows Store App 的日志中,我发现以下异常:

Arg_ArgumentException --> System.ArgumentException: Arg_ArgumentException at SharedLibrary.<BaseAddress>+0x3a13ad at my-app.<BaseAddress>+0xf29d82h at my-app.<BaseAddress>+0xf29cdc at my-app.<BaseAddress>+0x10e0844 at my-app.<BaseAddress>+0x14fbe60 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at SharedLibrary!<BaseAddress>+0x502089 at System.Threading.ContextCallback.Invoke(Object state) at SharedLibrary!<BaseAddress>+0x3e683c

为了对跟踪进行符号化,我尝试使用 corefx-tools 的WindowsDevCenterStacktraceSymbolicaterStackParser以及应用程序的 PDB,这会将跟踪更改为:

Arg_ArgumentException --> System.ArgumentException: Arg_ArgumentException at SharedLibrary.COM+_Entry_Point+0x3a13ad at my-app.COM+_Entry_Point+0xf29d82 at my-app.COM+_Entry_Point+0xf29cdc at my-app.COM+_Entry_Point+0x10e0844 at my-app.COM+_Entry_Point+0x14fbe60 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at SharedLibrary!COM+_Entry_Point+0x502089 at System.Threading.ContextCallback.Invoke(Object state) at SharedLibrary!COM+_Entry_Point+0x3e683c

有没有办法解决这种情况下的COM+_Entry_Point引用? 如何?

不要将 PDB 放在应用程序的 output 文件夹中,而是使用放在ilc子目录(更大)中的 PDB 文件。 使用此 PDB,堆栈跟踪将使用上述工具之一正确符号化。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM