Is it possible to obtain the current state of a gen_server process (presumably by sending some system message)? It could be useful when debugging.
gen_server
Of cours
There is actually a function that returns the state directly: sys:get_state/1,2. It accepts pid or name of the process and can optionally be given a timeout.