Trait starlark::debug::DapAdapter
source · pub trait DapAdapter: Debug + Send + 'static {
// Required methods
fn set_breakpoints(
&self,
source: &str,
breakpoints: &ResolvedBreakpoints
) -> Result<()>;
fn top_frame(&self) -> Result<Option<StackFrame>>;
fn stack_trace(
&self,
args: StackTraceArguments
) -> Result<StackTraceResponseBody>;
fn scopes(&self) -> Result<ScopesInfo>;
fn variables(&self) -> Result<VariablesInfo>;
fn inspect_variable(
&self,
path: VariablePath
) -> Result<InspectVariableInfo>;
fn continue_(&self) -> Result<()>;
fn step(&self, kind: StepKind) -> Result<()>;
fn evaluate(&self, expr: &str) -> Result<EvaluateExprInfo>;
}
Expand description
The DapAdapter accepts DAP requests and updates the hooks in the running evaluator.
Required Methods§
sourcefn set_breakpoints(
&self,
source: &str,
breakpoints: &ResolvedBreakpoints
) -> Result<()>
fn set_breakpoints( &self, source: &str, breakpoints: &ResolvedBreakpoints ) -> Result<()>
Sets multiple breakpoints for a file (and clears existing ones).
See https://microsoft.github.io/debug-adapter-protocol/specification#Requests_SetBreakpoints
sourcefn top_frame(&self) -> Result<Option<StackFrame>>
fn top_frame(&self) -> Result<Option<StackFrame>>
Gets the top stack frame, may be None if entered from native.
sourcefn stack_trace(
&self,
args: StackTraceArguments
) -> Result<StackTraceResponseBody>
fn stack_trace( &self, args: StackTraceArguments ) -> Result<StackTraceResponseBody>
Gets a stacktrace from the current execution state.
See https://microsoft.github.io/debug-adapter-protocol/specification#Requests_StackTrace
sourcefn scopes(&self) -> Result<ScopesInfo>
fn scopes(&self) -> Result<ScopesInfo>
Gets the variables scope for a frame.
See https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Scopes
sourcefn variables(&self) -> Result<VariablesInfo>
fn variables(&self) -> Result<VariablesInfo>
Gets variables for the current scope
See https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Variables
sourcefn inspect_variable(&self, path: VariablePath) -> Result<InspectVariableInfo>
fn inspect_variable(&self, path: VariablePath) -> Result<InspectVariableInfo>
Gets all child variables for the given access path
See https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Variables
sourcefn continue_(&self) -> Result<()>
fn continue_(&self) -> Result<()>
Resumes execution.
See https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Continue
sourcefn evaluate(&self, expr: &str) -> Result<EvaluateExprInfo>
fn evaluate(&self, expr: &str) -> Result<EvaluateExprInfo>
Evaluates in expression in the context of the top-most frame.
See https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Evaluate