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)
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: kats, Assigned: kats)
Details
Attachments
(1 file)
3.62 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8536273 -
Flags: review?(ehsan.akhgari)
Assignee | ||
Comment 2•10 years ago
|
||
green try |
Comment 3•10 years ago
|
||
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.
Updated•10 years ago
|
Attachment #8536273 -
Flags: review?(ehsan.akhgari) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 4•10 years ago
|
||
(I have other stuff to land too, so I can land this with that once the tree is opened)
Keywords: checkin-needed
Assignee | ||
Comment 5•10 years ago
|
||
![]() |
||
Comment 6•10 years ago
|
||
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.
Description
•