To get state of any process in erlang/elixir use :sys.get_state/1
:sys.get_state/1
By name:
:sys.get_state(MyGenServer)
By pid:
:sys.get_state(pid)