美文网首页
android 快速定位调用栈方式

android 快速定位调用栈方式

作者: 辉色投像 | 来源:发表于2020-09-03 18:09 被阅读0次

在一个方法里加入exception 并打印调用栈信息

Exception e = new Exception("AlarmfindPowerOffWakeup");

 e.printStackTrace();

例如:

public void aa(){

Exception e = new Exception("AlarmfindPowerOffWakeup");

 e.printStackTrace();

}

可以在main log中看System.err 里看到从哪调过来的

相关文章

网友评论

      本文标题:android 快速定位调用栈方式

      本文链接:https://www.haomeiwen.com/subject/vlyosktx.html