[erlang-questions] Binary prettyprinting
Wed Apr 8 23:01:48 CEST 2015
I forgot the more important in your question...
You may use dbg:tracer with a fun checking if the binary is big, and then apply a swab macro or you own formatting on it.
Le 7 avr. 2015 12:43, Vladimir Gordeev <> 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