[erlang-bugs] R15B02 : wish list : missing gen_fsm state view in observer application.

Robert Virding robert.virding@REDACTED
Tue Oct 16 12:15:03 CEST 2012


A very simple work-around is to use gen_fsm:sync_send_all_state_event/2 and ask it. You can then return whatever you need. Using this call you don't need to add the event to every state. By staying in the same state it is effectively a no-op.

Robert

----- Original Message -----
> From: "Dan Gudmundsson" <dgud@REDACTED>
> To: erlang-bugs@REDACTED
> Sent: Tuesday, 16 October, 2012 9:15:15 AM
> Subject: Re: [erlang-bugs] R15B02 : wish list : missing gen_fsm state view in observer application.
> 
> I agree, that would be nice..added to the observer wishlist..
> Another tab in process info window (for gen processes) would
> be good.
> 
> A patch will make it happen sooner :-)
> 
> /Dan
> 
> On Mon, Oct 15, 2012 at 10:19 PM, Steve Vinoski <vinoski@REDACTED>
> wrote:
> > On Mon, Oct 15, 2012 at 3:51 PM, PAILLEAU Eric
> > <eric.pailleau@REDACTED> wrote:
> >> Hello,
> >>
> >> not a bug but a really missing feature for observer :
> >>
> >> I found no way in interface to get the state (at least) and the
> >> state
> >> data of a gen_fsm process...
> >>
> >> For instance information of sys:get_status/1 .
> >>
> >> I would be nice to have special informations depending the
> >> behaviour of
> >> processes, in particular gen_fsm...
> >
> > Have you considered supplying your own custom version of
> > gen_fsm:format_status/2 for your fsm?
> >
> > http://www.erlang.org/doc/man/gen_fsm.html#Module:format_status-2
> >
> > --steve
> > _______________________________________________
> > erlang-bugs mailing list
> > erlang-bugs@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-bugs
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs
> 



More information about the erlang-bugs mailing list