[英]Symbolicate exception of UWP app built with .NET Native
In the logs of a sideloaded Windows Store App, I find the following exception:在侧载 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
To symbolicate the trace, I tried to utilize the WindowsDevCenterStacktraceSymbolicater and the StackParser of the corefx-tools along with the PDB of the app, which will change the trace to:为了对跟踪进行符号化,我尝试使用 corefx-tools 的WindowsDevCenterStacktraceSymbolicater和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
Is there a way to resolve the COM+_Entry_Point
references in this scenario?有没有办法解决这种情况下的
COM+_Entry_Point
引用? How?如何?
Instead of the PDB placed in the output folder of your app, use the PDB file placed in the ilc
subdirectory (which is way larger).不要将 PDB 放在应用程序的 output 文件夹中,而是使用放在
ilc
子目录(更大)中的 PDB 文件。 With this PDB, the stack trace will properly be symbolicated using one of the tools mentioned above.使用此 PDB,堆栈跟踪将使用上述工具之一正确符号化。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.