Reputation: 21817
I'm receiving data from tcp socket in binary view. In erlang shell i see:
<<18,0,0,0,53,9,116,101,115,116,32,103,97,109,101,1,0,0,1,
134,160,0,3,13,64,0,0,0,20,...>>
How can i show all data without ...
Thank you.
Upvotes: 7
Views: 3651
Reputation: 2919
> rp(Term).
Documentation here
This might not be what you want depending if you want to input rp(Term) in shell or want compiled code to output Term in shell.
Another thread with some more alternatives
Upvotes: 13
Reputation: 42870
Take a look at the format part of io:fwrite. I assume that your data is output with format P
or W
:
P
Writes data in the same way as ~p, but takes an extra argument which is the maximum depth to which terms are printed. Anything below this depth is replaced with ....
Try specifying a different format, for example:
io:fwrite("~p~n", [Data]).
Upvotes: 7