dbg question

Vlad Dumitrescu vlad_dumitrescu@REDACTED
Mon Feb 2 13:48:58 CET 2004


Hi,

I think the dbg:tracer must be started with something like this:

    dbg:tracer(port, dbg:trace_port(ip,4711)).

(see the documentation)

/Vlad

> I think the dbg:tracer(). is start the dbg server, but I'd like to start
> only the dbg client. But I did what you advice to me. Please see the
> resulst. It is same what I had before.
> I don't know how possible to start the dbg client. :-((
>
> Any other idea....??
>
> Erlang (BEAM) emulator version 5.3 [threads:0]
>
> Eshell V5.3  (abort with ^G)
> (axd301@REDACTED)1> dbg:tracer().
> {ok,<0.37.0>}
> (axd301@REDACTED)2> Pid = dbg:trace_client(ip, {"cp1-1", 4711}).
> <0.40.0>
> (axd301@REDACTED)3> is_pid(Pid).
> true
> (axd301@REDACTED)4> is_process_alive(Pid).
> false
> (axd301@REDACTED)5> dbg:stop
> stop/0               stop_clear/0         stop_trace_client/1
>
> (axd301@REDACTED)5> dbg:stop_trace_client(Pid).
>
> =ERROR REPORT==== 2-Feb-2004::12:53:03 ===
> Error in process <0.30.0> on node 'axd301@REDACTED' with exit value:
> {badarg,[{erla
>
ng,exit,[{badpid,<0.40.0>},abnormal]},{dbg,stop_trace_client,1},{erl_eval,do_app
> ly,5},{shell,eval_loop,2}]}
>
> ** exited: {badarg,[{erlang,exit,[{badpid,<0.40.0>},abnormal]},
>                     {dbg,stop_trace_client,1},
>                     {erl_eval,do_apply,5},
>                     {shell,eval_loop,2}]} **
> (axd301@REDACTED)6>
>



More information about the erlang-questions mailing list