View Source edb_server_break (edb v0.3.0)
Summary
Functions
Returns true if the given process is either on an explicit breakpoint or a step breakpoint. Equivalently, returns true if the given process is on a VM breakpoint.
Types
Functions
-spec add_explicit(module(), line(), breakpoints()) -> {ok, breakpoints()} | {error, edb:add_breakpoint_error()}.
-spec add_steps_on_stack_frames(pid(), [edb:stack_frame()], breakpoints()) -> {ok, breakpoints()} | {error, Error} when Error :: no_abstract_code | {beam_analysis, term()}.
-spec clear_explicit(module(), line(), breakpoints()) -> {ok, removed | vanished, breakpoints()} | {error, not_found | {invariant_violation, term()}}.
-spec create() -> breakpoints().
-spec get_explicit_hit(pid(), breakpoints()) -> {ok, #{module := module(), line := line()}} | no_breakpoint_hit.
-spec get_explicits(breakpoints()) -> #{module() => #{line() => []}}.
-spec get_explicits(module(), breakpoints()) -> #{line() => []}.
-spec get_explicits_hit(breakpoints()) -> #{pid() => #{module := module(), line := line()}}.
-spec is_process_trapped(Pid, Breakpoints) -> boolean() when Pid :: pid(), Breakpoints :: breakpoints().
Returns true if the given process is either on an explicit breakpoint or a step breakpoint. Equivalently, returns true if the given process is on a VM breakpoint.
-spec register_breakpoint_event(Module, Line, Pid, Resume, Breakpoints) -> {suspend, explicit | step, breakpoints()} | resume when Breakpoints :: breakpoints(), Module :: module(), Line :: integer(), Pid :: pid(), Resume :: fun(() -> ok).
-spec resume_processes(all | edb_server_sets:set(pid()), breakpoints()) -> breakpoints().