reason-native icon indicating copy to clipboard operation
reason-native copied to clipboard

Console.log/debug max length

Open danielo515 opened this issue 5 years ago • 1 comments

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

danielo515 avatar Apr 08 '20 10:04 danielo515

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!

kyldvs avatar Apr 08 '20 15:04 kyldvs