[erlang-questions] how: redirect trace output to a file

Kenneth Lundin kenneth.lundin@REDACTED
Mon Nov 26 11:39:40 CET 2007


You can redirect trace output in various ways.

dbg:tracer(Type,Data) % sets the tracer

You can do like this to direct trace output to a file:

dbg:tracer(port,dbg:trace_port(file,"MyFileName")).

or

dbg:tracer(port,dbg:trace_port(file,{"MyFileName",wrap,"MySuffix"})).


/Kenneth Erlang/OTP team at Ericsson

On 11/26/07, YC <yinso.chen@REDACTED> wrote:
> Hi all -
>
> how do I redirect trace output to a file?  I played with dbg:trace_port, but
> I'm unclear on how it's used and whether it's the right function.  Any
> pointer is appreciated,
>
> Thanks,
> yc
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list