Closed Bug 1111407 Opened 10 years ago Closed 10 years ago

Add an easy way to work around logcat drops for local debugging

Categories

(Core :: mozglue, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: kats, Assigned: kats)

Details

Attachments

(1 file)

On B2G devices often the best way to debug stuff is via printf_stderr, which comes out via logcat. However logcat uses a circular buffer on-device, and then adb on desktop will pull stuff from that buffer. If there's too much output, the buffer can fill up and stuff will get overwritten before the client can read it, resulting in "adb logcat" missing output. This is a known issue across all android-based devices. The way to work around this is to log stuff to a file rather than logcat, and then pull the file off the device and look at it instead. It would be nice to have an easy way to do this in local debug builds without having to rewrite the code every time.
You can use profile.sh and use the 'log' tab. It provides more information (drawing piepeline) but the major downside is it's not live. Also being able to dump to a file easily would complement this nicely.
Attachment #8536273 - Flags: review?(ehsan.akhgari) → review+
(I have other stuff to land too, so I can land this with that once the tree is opened)
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: