android 如何打印堆栈信息

时间:2014-09-18 12:50:03   收藏:0   阅读:428

通过如下方法,可以直接打印出堆栈信息,方便调试:

  1. RuntimeException here =newRuntimeException("here");
  2. here.fillInStackTrace();
  3. Log.i(TAG,"test", here);



来自为知笔记(Wiz)



原文:http://www.cnblogs.com/bianxh/p/3978804.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!