View Source edb_server_call_proc (edb v0.3.0)

Support for calling node processes that could be paused

There are times were we want to call standard processed to query node state. Typically these processes will be excluded from debugging but if they are not, we want to make sure that the call fails, instead of the debugger getting blocked

Summary

Types

result/1

-type result(A) :: {call_ok, A} | {call_error, noproc | suspended | timeout}.

Functions

code_where_is_file(Filename)

-spec code_where_is_file(Filename) -> result(non_existing | Absname)
                            when Filename :: file:filename(), Absname :: file:filename().

safe_send_recv(Dest, Request, Receive, TimeoutMs)

-spec safe_send_recv(Dest, Request, Receive, TimeoutMs) -> result(Res)
                        when
                            Dest :: atom(),
                            Request :: fun(() -> Msg :: term()),
                            Receive :: fun(() -> Res),
                            TimeoutMs :: pos_integer().