[erlang-questions] How to use Pman for looking at process state

1 view
Skip to first unread message

Ivan Uemlianin

unread,
May 17, 2011, 6:41:01 AM5/17/11
to Erlang Questions
Dear All

I'm using Pman to look at a running erlang application. Many of the
processes are running functions in receive loops like the following:

myFunc(State) ->
receive
% some clauses defining NewState
end,
myFunc(NewState).

Tracing a process allows me to see the messages received by and sent
from the process. Is there any way I can see the value of State? If
not, is there another to see the value of process variables?

With thanks and best wishes

Ivan


--
============================================================
Ivan A. Uemlianin
Speech Technology Research and Development

iv...@llaisdy.com
www.llaisdy.com
llaisdy.wordpress.com
www.linkedin.com/in/ivanuemlianin

"Froh, froh! Wie seine Sonnen, seine Sonnen fliegen"
(Schiller, Beethoven)
============================================================
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Bengt Kleberg

unread,
May 17, 2011, 6:46:29 AM5/17/11
to Erlang Questions
Greetings,

If there is no way to use pman for this I recommend dbg. Trace on
myFunc.


bengt

On Tue, 2011-05-17 at 12:41 +0200, Ivan Uemlianin wrote:
> Dear All
>
> I'm using Pman to look at a running erlang application. Many of the
> processes are running functions in receive loops like the following:
>
> myFunc(State) ->
> receive
> % some clauses defining NewState
> end,
> myFunc(NewState).
>
> Tracing a process allows me to see the messages received by and sent
> from the process. Is there any way I can see the value of State? If
> not, is there another to see the value of process variables?
>
> With thanks and best wishes
>
> Ivan
>
>

_______________________________________________

Reply all
Reply to author
Forward
0 new messages