0

Android 手机上的 Log.d 文件存储在哪里?还是存储在手机上?当应用程序崩溃时,我想用它来检查 try/catch 的结果。该应用程序不会在调试器或 Android 4.1 手机上崩溃,但它会在 Froyo 手机上崩溃。我正在尝试追踪崩溃来自哪条线路。

更新:我学会了如何通过 USB 调试直接在手机上进行调试。它比我想象的要容易,比模拟器更快。不过,知道 Log.d 文件保存在哪里仍然会很高兴。

4

1 回答 1

0

您可以在部分中跟踪您Log.d的线条logcatdebug

一般使用 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.
于 2013-08-07T05:04:42.493 回答