Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自己造成异常抓取好像在手机文件里面看不到错误日志啊,是不是操作有误呢?参照文档来的 #4

Closed
WinWang opened this issue Jun 4, 2019 · 8 comments
Labels
help wanted Extra attention is needed

Comments

@WinWang
Copy link

WinWang commented Jun 4, 2019

自己造成异常抓取好像在手机文件里面看不到错误日志啊,是不是操作有误呢?参照文档来的

@caikelun
Copy link
Collaborator

caikelun commented Jun 4, 2019

你可以先直接运行 sample app 试一下。

@caikelun caikelun added the help wanted Extra attention is needed label Jun 4, 2019
@WinWang
Copy link
Author

WinWang commented Jun 4, 2019

用demo试了下,在手机里面确实没有找到崩溃的debug.json文件

@caikelun
Copy link
Collaborator

caikelun commented Jun 4, 2019

按照你目前提供的信息量,我没法提供更多的帮助,抱歉。
请先自己调试和诊断一下?

@WinWang
Copy link
Author

WinWang commented Jun 6, 2019

请问下如果生成的崩溃文件是在data/data文件夹下面才能看到吗?我看了下这个需要手机root才能查看的,没root的话我不就看不了了?

@caikelun
Copy link
Collaborator

caikelun commented Jun 6, 2019

运行sample app debug版,生成tombstone文件。adb直接查看:

$adb shell
$run-as xcrash.sample
$cd ./files/tombstones
$ls -al

你可以先了解一下:adb、linux user permission、android app debug/release version 等等的知识。

@WinWang
Copy link
Author

WinWang commented Jun 6, 2019

好的,谢谢

@hjf-codecrazy
Copy link

运行sample app debug版,生成tombstone文件。adb直接查看:

$adb shell
$run-as xcrash.sample
$cd ./files/tombstones
$ls -al

你可以先了解一下:adb、linux user permission、android app debug/release version 等等的知识。

release版本可以看嘛?我试了好像不行。

@caikelun
Copy link
Collaborator

release不能run-as,但是app自身的逻辑是可以读取内存存储的,release只要保证app自身逻辑能读取然后投递到服务端就可以了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants