[erlang-questions] is there rr() finctionality outside of shell?

Nick Marino nmarino@REDACTED
Wed Jul 1 16:58:20 CEST 2015


The shell uses the io_lib_pretty module to format records, so you could try
tapping into that. It's undocumented, so YMMV, stuff could break in future
versions, etc. But if you're careful with upgrades and such then you'll
probably be okay.

More info on how to use io_lib_pretty at these links:
http://amiest-devblog.blogspot.com/2008/05/iolibpretty-nice-secret-module.html
http://erlang.2086793.n4.nabble.com/Pretty-printing-records-td2110531.html

Nick

On Sat, Jun 27, 2015 at 5:31 AM, Alex Shneyderman <a.shneyderman@REDACTED>
wrote:

> Hi, all!
>
> I would like to nicely format dbg output. I have a formatter function
> but io:format()  out of there produces plain tuples. Even if I am
> running this dbg:tc() code within the shell that saw rr() call
> beforehand.
>
> Is there a lib some place that helps with formatting records nicely,
> besides trying to dig it out the shell code?
>
> Cheers,
> Alex.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150701/965cba11/attachment.htm>


More information about the erlang-questions mailing list