dbg question

Robert Balogh <>
Sun Feb 1 11:54:03 CET 2004


Hi Ulf,

I checked this Pid, and unfrotunatelli is not alive.

Erlang (BEAM) emulator version 5.3 [threads:0]

Eshell V5.3  (abort with ^G)
()1> Pid = dbg:trace_client(ip, {"cp1-1", 4711}).
<0.37.0>
()2> is_pid(Pid).
true
()3> is_process_alive(Pid).
false

How possible to start this dbg client? Do you have any idea? I read the dbg 
module quide about 10 times, and at this time I think I don't understand how 
works it :-(

tahnks,
Robi


>From: Ulf Wiger <>
>To: 
>Subject: Re: dbg question
>Date: Sun, 01 Feb 2004 11:06:35 +0100
>
>
>Actually, is_pid/1 will only tell you that the type of
>Pid is pid(). Use is_process_alive(Pid) to find out if
>it is still there.
>
>Eshell V5.3  (abort with ^G)
>1> Pid = spawn(fun() -> exit(normal) end).
><0.31.0>
>2> is_pid(Pid).
>true
>3> is_process_alive(Pid).
>false
>4> Pid2 = spawn(fun() -> timer:sleep(30000) end).
><0.35.0>
>5> is_process_alive(Pid2).
>true
>6>
>
>On Sun, 01 Feb 2004 01:39:12 +0100, Robert Balogh <> 
>wrote:
>
>>Hi Vance,
>>
>>Thanks for your advice. I check the pid, and it is true. Look:
>>
>>Erlang (BEAM) emulator version 5.3 [threads:0]
>>
>>Eshell V5.3  (abort with ^G)
>>()1> Pid = dbg:trace_client(ip, {"cp1-1", 4711}).
>><0.37.0>
>>()2> is_pid(Pid).
>>true
>>()3> dbg:stop_trace_client(Pid).
>>
>>=ERROR REPORT==== 1-Feb-2004::01:36:23 ===
>>Error in process <0.30.0> on node '' with exit value: 
>>{badarg,[{erla
>>ng,exit,[{badpid,<0.37.0>},abnormal]},{dbg,stop_trace_client,1},{erl_eval,do_app
>>ly,5},{shell,eval_loop,2}]}
>>
>>** exited: {badarg,[{erlang,exit,[{badpid,<0.37.0>},abnormal]},
>>                     {dbg,stop_trace_client,1},
>>                     {erl_eval,do_apply,5},
>>                     {shell,eval_loop,2}]} **
>>()4>
>>
>>
>>But I can not to stop this process :-(.
>>
>>Thanks four your help,
>>
>>regards,
>>/Robi
>>
>>
>>>From: Vance Shipley <>
>>>To: Robert Balogh <>
>>>Subject: Re: dbg question
>>>Date: Sat, 31 Jan 2004 17:01:17 -0500
>>>
>>>Robi,
>>>
>>>Make sure the process is still there:
>>>
>>>()1> Pid = dbg:trace_client(ip, {"cp1-1", 4711}).
>>><0.37.0>
>>>()2> is_pid(Pid).
>>>true
>>>
>>>If it doesn't say "true" then it is gone.  If it does say true
>>>I don't know.
>>>
>>>	-Vance
>>>
>>
>>_________________________________________________________________
>>The new MSN 8: advanced junk mail protection and 2 months FREE* 
>>http://join.msn.com/?page=features/junkmail
>>
>
>
>
>--
>Ulf Wiger
>

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail




More information about the erlang-questions mailing list