Confirmed users
360
edits
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
; A log of what was happening around the time the problem happened: This can take the form of the GeckoDump logcat category or a log generated by the secret debug mechanism. | ; A log of what was happening around the time the problem happened: This can take the form of the GeckoDump logcat category or a log generated by the secret debug mechanism. | ||
* logcat log of what the e-mail app was doing: | * logcat log of what the e-mail app was doing: | ||
** | ** Have the "adb" command available and usable. If you can type "adb logcat" with the device plugged in and see some junk show up (especially "LOG: Mail universe/bridge created, notifying" when you start the e-mail app from when it was closed), then it's working! No adb? Not working? then: | ||
*** | *** no adb? [https://developer.mozilla.org/en-US/Firefox_OS/Firefox_OS_build_prerequisites#Install_adb install adb] | ||
*** | *** adb doesn't seem to see the device? [https://developer.mozilla.org/en-US/Firefox_OS/Firefox_OS_build_prerequisites#For_Linux.3A_configure_the_udev_rule_for_your_phone enable the permissions in udev rules] | ||
** Second: make sure the logcat stays connected even when the screen locks / the display turns off. You have to have both "remote debugging" enabled (which is what makes logcat work at all) | ** Second: make sure the logcat stays connected even when the screen locks / the display turns off. You have to have both: | ||
*** [https://developer.mozilla.org/en-US/Firefox_OS/Firefox_OS_usage_tips/Remote_debugging "remote debugging" enabled] (which is what makes logcat work at all) from the settings app | |||
*** you need to disable the lock screen in order for logcat to remain connected. | |||
*** (There are other ways to make this happen, but they are technical and I don't know them. Feel free to edit the wiki and include instructions here.) | |||
** Please provide the logcat by running '''adb logcat -v time -s GeckoDump:V Gecko:V | tee FILENAME-TO-LOG-TO'''. Please start running this command BEFORE you attempt to reproduce the problem. logcat uses a circular buffer that discards older entries when the buffer fills up, so if you run logcat only after the problem happens, you may not have all of the logic. Once you are done, hit control-C and send us the file. | ** Please provide the logcat by running '''adb logcat -v time -s GeckoDump:V Gecko:V | tee FILENAME-TO-LOG-TO'''. Please start running this command BEFORE you attempt to reproduce the problem. logcat uses a circular buffer that discards older entries when the buffer fills up, so if you run logcat only after the problem happens, you may not have all of the logic. Once you are done, hit control-C and send us the file. | ||
**** The logcat arguments filter out a lot of the noise that we don't care about and gives us timestamps. | **** The logcat arguments filter out a lot of the noise that we don't care about and gives us timestamps. | ||
Line 29: | Line 32: | ||
== Setting the dump() preference == | == Setting the dump() preference == | ||
This hopefully isn't needed anymore. I think this is all out of date if it is. | |||
Thanks to Dave Hylands for steps here: | Thanks to Dave Hylands for steps here: |