Get Android stack trace from device using Debug Bridge
2013-06-12 20:06
507 查看
Instead of crashing, sometimes your Android application will stop responding and dump a stack trace to the device. You probably will not be able to access this using Android
File Transfer, and if you view it using the Dalvik
Debug Monitor Server (DDMS) the data directory will probably appear empty.
You can get the file using the Android Debug Bridge (ADB)
however. The easiest way to set this up is to create a symlink (on a Mac, easier to add the path in Windows I imagine) to adb from /usr/sbin/. The command will depend on where you installed the Android SDK…
sudo ln -s /usr/local/android-sdk-macosx/platform-tools/adb /usr/sbin/
You can then run the following command in the directory where you want to pull the file to
adb pull /data/anr/traces.txt
You should get some output showing that the transfer took place
3622 KB/s (245506 bytes in 0.066s)
[/code]
?
File Transfer, and if you view it using the Dalvik
Debug Monitor Server (DDMS) the data directory will probably appear empty.
You can get the file using the Android Debug Bridge (ADB)
however. The easiest way to set this up is to create a symlink (on a Mac, easier to add the path in Windows I imagine) to adb from /usr/sbin/. The command will depend on where you installed the Android SDK…
sudo ln -s /usr/local/android-sdk-macosx/platform-tools/adb /usr/sbin/
You can then run the following command in the directory where you want to pull the file to
adb pull /data/anr/traces.txt
You should get some output showing that the transfer took place
3622 KB/s (245506 bytes in 0.066s)
[/code]
?
相关文章推荐
- Get the log from android device
- Using Android Debug Bridge (ADB) via TCP/IP
- Unable to get the focused window from device - android
- Using Android Debug Bridge (ADB) via TCP/IP
- Using Android Debug Bridge (ADB) over Wifi
- Android studio 1.0.1中Run with --stacktrace option to get the stack trace. Run with --info or --debug
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get m
- Android: How to get Address from geolocation using Geocoder
- Android -- java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
- Android: How to get Address from geolocation using Geocoder
- search a file from directory and get storage directorys from android device(i use tablet here)
- Android Debug Bridge (adb) device - no permissions
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get
- Android USB Host开发之manager.getDeviceList()获取不到设备列表
- c3p0之DEBUG -- CLOSE BY CLIENT STACK TRACE
- Android-Android Debug Bridge的用法_笔记
- Get real path from URI, Android KitKat new storage access framework
- 在android用Google Geocoding API服务解析地址(关键词:android/GPS/Geocoding API/getLocationFrom()返回null)
- windows7不支持AllocateAndGetTcpExTableFromStack
- (转)Android Debug Bridge 服务详解