Crashlytics记录错误 [英] Crashlytics record error

查看:64
本文介绍了Crashlytics记录错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Crashlytics for iOS记录错误。

I am recording an error using Crashlytics for iOS.

NSDictionary *detail = @{@"message":errorWithURL, @"response":jsonString};
[[Crashlytics sharedInstance] recordError:[NSError errorWithDomain:@"send request" code:0 userInfo:detail]];

但是我在Crashlytics控制台中看不到该消息。

But I do not see the message in Crashlytics console.

请参见此处

我在这里做错了吗?

推荐答案

从Fabric Docs- userInfo对象中包含的数据被转换为键值对并显示在单个问题的键/日志部分中。

From Fabric Docs - "Data contained within the userInfo object are converted to key-value pairs and displayed in the keys/logs section within an individual issue."

因此,按右上角的查看所有会话按钮,然后转到顶部的键/日志部分页面的

So press "View all sessions" button upper right corner, then go to keys/logs section on top of the page

https://docs.fabric.io/apple/crashlytics/logged-errors.html#using-the-api

这篇关于Crashlytics记录错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆