簡體   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