View Source edb_dap_request_set_breakpoints (edb v0.4.0)

Summary

Types

arguments/0

-type arguments() ::
          #{source := edb_dap:source(),
            breakpoints => [sourceBreakpoint()],
            lines => [number()],
            sourceModified => boolean()}.

breakpoint/0

-type breakpoint() ::
          #{id => number(),
            verified := boolean(),
            message => binary(),
            source => edb_dap:source(),
            line => number(),
            column => number(),
            endLine => number(),
            endColumn => number(),
            instructionReference => binary(),
            offset => number(),
            reason => binary()}.

response/0

-type response() :: #{breakpoints := [breakpoint()]}.

sourceBreakpoint/0

-type sourceBreakpoint() ::
          #{line := number(),
            column => number(),
            condition => binary(),
            hitCondition => binary(),
            logMessage => binary(),
            mode => binary()}.

Functions

handle(State, Args)

-spec handle(State, Args) -> edb_dap_request:reaction(response())
                when State :: edb_dap_server:state(), Args :: arguments().

parse_arguments(Args)

-spec parse_arguments(edb_dap:arguments()) -> {ok, arguments()} | {error, Reason :: binary()}.