question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Unable to see full log of long data

See original GitHub issue

šŸ› Bug Report

Flipper only logs limited number of lines even after > and n more is pressed. I tried logging array with length of 200, but it only shows maximum of 161. 1 (also have no idea why itā€™s saying 618 more) 2 Iā€™m expecting to see another > and n more button if thereā€™re more lines to show.

To Reproduce

Run:

const testArray: number[] = [...Array(200)].map((_, index: number) => index);
console.log(testArray);

Environment

Flipper: 0.137.0 iOS: 15.2 Android: havenā€™t tested

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mweststratecommented, May 23, 2022

The logs plugin is basically the stdout/stderr or your application, a single direction stream that shows everything you dump into it, nothing more, nothing less, just a bunch of characters. It doesnā€™t know about objects, arrays, or JavaScript at all for that matter.

The hermes debugger is a tool that connects to the JavaScript engine itself, and is hence not technology agnostic. So it wonā€™t capture any info coming from the native world for example. But since it is a specialised bidirectional protocol, it can do things as expanding objects as long as they are kept in the JS memory of the client. Note that this is just a boxed chrome developers tool, so we donā€™t really influence its behavior. That your object doesnā€™t further expand might mean that is already garbage collected for example, by the time you expand it. Or it has been shortened in the mean time. Etc.

1reaction
thisisgitcommented, Mar 7, 2022

After posting above comment, I noticed and 618 more button doesnā€™t do anything unlike the first post, where it should show ā€œlittle moreā€ lines.

So I created fresh RN project, tested there, and was able to reproduce the first issue:

https://user-images.githubusercontent.com/13231564/157032212-8a0ba0f1-3f88-424c-b847-861ebe4ec62b.mp4

The only difference between this and above record is the version of RN, above is 0.66.4 and this one is 0.67.3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to display long messages in logcat - Stack Overflow
If logcat is capping the length at 1000 then you can split the string you want to log with String.subString() and log it...
Read more >
Log message is truncated - New Relic Documentation
New Relic log management troubleshooting: your log data is not being displayed completely; it ends incompletely, with an ellipses.
Read more >
[Db2] How to solve transaction log for the databases is full ...
As a quick workaround, specify the transaction causing "transaction log is full" situation, then commit or rollback it. 1.1. Determine theĀ ...
Read more >
Manage the size of the transaction log file - Microsoft Learn
This is useful when you know that a transaction log file contains unused space. You can shrink a log file only while the...
Read more >
Troubleshoot pushing log data to CloudWatch - Amazon AWS
If logs stopped pushing after a log rotation, check the supported log rotation methods. Ā· If logs are pushed briefly only after the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found