Androidの印刷スタック

Androidでスタック情報を印刷する方法:

1:

RuntimeException re = new RuntimeException(); 
re.fillInStackTrace(); 
Log.e( "info"、 "info"、re);
 
 
2:    
 
  
  
  1. Log.w(TAG、Log.getStackTraceString(new  Throwable()));
3:
  1.  {を 試してください
  2. catch  (InterruptedException e){
  3.     Log.e(TAG、Log.getStackTraceString(e));  
  4. }  

おすすめ

転載: blog.csdn.net/lgdlchshg/article/details/25127323