Default How to gather helpful data for troubleshooting

Pre-requisites:
  • ADB setup and minor knowledge on how to use it. (See here if you do not have such knowledge)
  • Have an open command prompt or terminal window.

How to obtain a full logcat
Code:
adb shell
su
logcat > /sdcard/logcat.txt
exit
exit
adb pull /sdcard/logcat.txt
How to obtain a targeted logcat for a particular issue
Code:
adb logcat > logcat.txt
  1. Immediately reproduce the issue
  2. CTRL + C out of the running logcat.

How to obtain a dmesg (helpful for catching kernel issues on a running build)
Code:
adb shell
su
dmesg > /sdcard/dmesg.txt
exit
exit
adb pull /sdcard/dmesg.txt
How to obtain a last_kmsg (helpful for catching kernel issues from last kernel boot-up such as bootloops)
Code:
adb shell
su
cat /proc/last_kmsg > /sdcard/last_kmsg.txt
exit
exit
adb pull /sdcard/last_kmsg.txt
If you like my work or if I've helped you, please consider the "Thanks" button or donate if you wish. Join #cm-htc on Freenode to chat about CM HTC devices!

HTC One - M8 - CyanogenMod: 11.0
HTC One - XL - CyanogenMod: 11.0 | 10.2 | 10.1 | 10 | 9
HTC One - VX - *coming soon*

Previous Work:
HTC One - M7 - CyanogenMod: 11.0 | 10.2 | 10.1 -- Maintainer: intervigil
HTC One Mini - CyanogenMod: 11.0 -- Maintainer: u-ra
HTC Vivid 4G - CyanogenMod 10 -- Support halted.


Data needed to troubleshoot CM issues