Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console.log/debug max length #249

Open
danielo515 opened this issue Apr 8, 2020 · 1 comment
Open

Console.log/debug max length #249

danielo515 opened this issue Apr 8, 2020 · 1 comment

Comments

@danielo515
Copy link

Hello.
Thanks for this awesome set of tools, it makes easier for a JS dev like me get into Ocaml world.
Something that makes very easy to work with Javascript is being able to inspect almost anything with console as a last resort or as initial approach while prototyping.
Console on this library makes a great work on that, but when it prints list it has a max-length. Is there a way to increase or override that length? It is limited to 6 elements on the list, which is quite small.

Thanks and regards

@kyldvs
Copy link
Contributor

kyldvs commented Apr 8, 2020

I think you can call this function to adjust the maxLength that can be printed: https://github.com/facebookexperimental/reason-native/blob/master/shared-src/objectPrinter/ObjectPrinter.re#L19

Let me know if that doesn't work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants