簡體   English   中英

有沒有辦法可以在Xamarin.Forms應用程序中打印出異常的重要部分?

[英]Is there a way that I can print out the important parts of an exception in my Xamarin.Forms app?

我有一個被調用的異常:

catch (Exception ex)
{
   Debug.WriteLine("MainPage: exception");
}

是否有任何方法可以處理和顯示我可能需要了解的大多數異常信息,並像我正在使用的那樣使用Debt.Writeline打印出來?

Debug.WriteLine(ex);

要么

Debug.WriteLine(ex.Message);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM