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

Symbolicate exception of UWP app built with .NET Native

在旁加载 Windows 商店应用程序的日志中,我发现以下异常:

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 的 WindowsDevCenterStacktraceSymbolicater and the StackParser 以及应用程序的 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,而是使用 ilc 子目录(更大)中的 PDB 文件。使用此 PDB,堆栈跟踪将使用上述工具之一正确符号化。