Android手机上存储的Log.d文件在哪里?还是存储在手机上?我想用它来检查应用程序崩溃时try / catch的结果。该应用程序不会在调试器或Android 4.1手机上崩溃,但它会在Froyo手机上崩溃。我正试图追踪崩溃来自哪条线。
更新: 我学会了如何通过USB调试直接在手机上进行调试。它比我想象的要容易,而且比模拟器更快。知道Log.d文件的保存位置仍然很好。
答案 0 :(得分:0)
您可以在Log.d
部分的logcat
中debug
跟踪您的行。
通常使用Log.v()Log.d()Log.i()Log.w()和Log.e()方法。(部分 - VERBOSE,DEBUG,INFO,WARN,ERROR 强>)
The order in terms of verbosity, from least to most is
ERROR, WARN, INFO, DEBUG, VERBOSE.
Verbose should never be compiled into an application except during development.
Debug logs are compiled in but stripped at runtime. Error, warning and info
logs are always kept.