[erlang-questions] Binary prettyprinting

Éric Pailleau eric.pailleau@REDACTED
Wed Apr 8 21:51:49 CEST 2015


hello,

This may help to do this :

https://github.com/crownedgrouse/swab

(new native features are welcome ;-)...) 
Regards



Le 7 avr. 2015 12:43, Vladimir Gordeev <gordeev.vladimir.v@REDACTED> a écrit :
>
> Is there is a hack that globally makes format binaries differently?
>
> Sometimes while debugging I do print some data. Sometimes this data is compound and two-three levels down there is a long binary value.
>
> I want to see <<39,122,6,247,77,47,80,222,192,57,233,137,230, ... 1500 bytes total>> instead of actual 1,5 Kb data in text.
>
> Of course I can write such formatting function, but I have to use it explicitly each time (god, my three-level compound data).
>
>  I want this only on my local machine, so any hacks welcome. Any ideas?


More information about the erlang-questions mailing list