- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有这个代码:
private async void ChangeTheColours(Object sender, EventArgs e)
{
try
{
if ((string)this.ButtonLabel.Text.Substring(0, 1) != " ")
{
ConfigureColors((Button)sender, "C");
await Task.Delay(200);
ConfigureColors((Button)sender, State);
}
}
catch (Exception ex)
{
Crashes.TrackError(ex,
new Dictionary<string, string> {
{"ChangeTheColours", "Exception"},
{"Device Name", DeviceInfo.Name },
{"Device Model", DeviceInfo.Model },
});
}
}
出现异常,我期待看到 ex 字符串(不止几个字)、设备名称和型号等信息。
但 AppCenter 只告诉我:
Stack traces Button.ChangeTheColours (System.Object sender, System.EventArgs e) Templates/Button/Button.xaml.cs:83
并且没有提供有关异常或设备名称和型号的更多信息。
在尝试检测这样的崩溃时,我是否做错了什么?请注意,我意识到通常需要抛出异常,但这是此错误的特例。
最佳答案
一些事情。首先,我认为 this page可能会解释为什么您的异常消息被缩短了一点。我不太确定 125 个字符的限制是否适用于异常本身。
其次,如果不查看单个错误报告,您将看不到太多数据。查看特定实例 -
关于c# - Xamarin AppCenter Crashes.TrackError 没有显示我在 AppCenter 中期望的详细信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56323801/
我有这个代码: private async void ChangeTheColours(Object sender, EventArgs e) { try
我在调用 TrackError 之前注册了事件处理程序,但它们从未被调用过。是的,事件发生是因为 AppCenter 中出现了错误。 //On loading app Crashes.SentErro
我试图向我们的应用程序添加一些分析和崩溃日志记录,因此我正在实现应用程序中心,因为它看起来非常合适。我们正在运行针对 iOS/Android/UWP 的 xamarin 表单。 我正在尝试在我们的共享
我是一名优秀的程序员,十分优秀!