Documentation ¶
Overview ¶
Package daptest provides a sample client with utilities for DAP mode testing.
Index ¶
- type Client
- func (c *Client) AttachRequest(arguments map[string]interface{})
- func (c *Client) BreakpointLocationsRequest()
- func (c *Client) CancelRequest()
- func (c *Client) Close()
- func (c *Client) CompletionsRequest()
- func (c *Client) ConfigurationDoneRequest()
- func (c *Client) ContinueRequest(thread int)
- func (c *Client) DataBreakpointInfoRequest()
- func (c *Client) DisassembleRequest()
- func (c *Client) DisconnectRequest()
- func (c *Client) DisconnectRequestWithKillOption(kill bool)
- func (c *Client) EvaluateRequest(expr string, fid int, context string)
- func (c *Client) ExceptionInfoRequest(threadID int)
- func (c *Client) ExpectAttachResponse(t *testing.T) *dap.AttachResponse
- func (c *Client) ExpectBreakpointEvent(t *testing.T) *dap.BreakpointEvent
- func (c *Client) ExpectBreakpointLocationsResponse(t *testing.T) *dap.BreakpointLocationsResponse
- func (c *Client) ExpectCancelResponse(t *testing.T) *dap.CancelResponse
- func (c *Client) ExpectCapabilitiesEvent(t *testing.T) *dap.CapabilitiesEvent
- func (c *Client) ExpectCompletionsResponse(t *testing.T) *dap.CompletionsResponse
- func (c *Client) ExpectConfigurationDoneResponse(t *testing.T) *dap.ConfigurationDoneResponse
- func (c *Client) ExpectContinueResponse(t *testing.T) *dap.ContinueResponse
- func (c *Client) ExpectContinuedEvent(t *testing.T) *dap.ContinuedEvent
- func (c *Client) ExpectDataBreakpointInfoResponse(t *testing.T) *dap.DataBreakpointInfoResponse
- func (c *Client) ExpectDisassembleResponse(t *testing.T) *dap.DisassembleResponse
- func (c *Client) ExpectDisconnectResponse(t *testing.T) *dap.DisconnectResponse
- func (c *Client) ExpectErrorResponse(t *testing.T) *dap.ErrorResponse
- func (c *Client) ExpectEvaluateResponse(t *testing.T) *dap.EvaluateResponse
- func (c *Client) ExpectExceptionInfoResponse(t *testing.T) *dap.ExceptionInfoResponse
- func (c *Client) ExpectExitedEvent(t *testing.T) *dap.ExitedEvent
- func (c *Client) ExpectGotoResponse(t *testing.T) *dap.GotoResponse
- func (c *Client) ExpectGotoTargetsResponse(t *testing.T) *dap.GotoTargetsResponse
- func (c *Client) ExpectInitializeResponse(t *testing.T) *dap.InitializeResponse
- func (c *Client) ExpectInitializeResponseAndCapabilities(t *testing.T) *dap.InitializeResponse
- func (c *Client) ExpectInitializedEvent(t *testing.T) *dap.InitializedEvent
- func (c *Client) ExpectInvalidatedEvent(t *testing.T) *dap.InvalidatedEvent
- func (c *Client) ExpectInvisibleErrorResponse(t *testing.T) *dap.ErrorResponse
- func (c *Client) ExpectLaunchResponse(t *testing.T) *dap.LaunchResponse
- func (c *Client) ExpectLoadedSourceEvent(t *testing.T) *dap.LoadedSourceEvent
- func (c *Client) ExpectLoadedSourcesResponse(t *testing.T) *dap.LoadedSourcesResponse
- func (c *Client) ExpectMessage(t *testing.T) dap.Message
- func (c *Client) ExpectModuleEvent(t *testing.T) *dap.ModuleEvent
- func (c *Client) ExpectModulesResponse(t *testing.T) *dap.ModulesResponse
- func (c *Client) ExpectNextResponse(t *testing.T) *dap.NextResponse
- func (c *Client) ExpectNotYetImplementedErrorResponse(t *testing.T) *dap.ErrorResponse
- func (c *Client) ExpectOutputEvent(t *testing.T) *dap.OutputEvent
- func (c *Client) ExpectOutputEventDetaching(t *testing.T) *dap.OutputEvent
- func (c *Client) ExpectOutputEventDetachingKill(t *testing.T) *dap.OutputEvent
- func (c *Client) ExpectOutputEventDetachingNoKill(t *testing.T) *dap.OutputEvent
- func (c *Client) ExpectOutputEventProcessExited(t *testing.T, status int) *dap.OutputEvent
- func (c *Client) ExpectOutputEventRegex(t *testing.T, want string) *dap.OutputEvent
- func (c *Client) ExpectPauseResponse(t *testing.T) *dap.PauseResponse
- func (c *Client) ExpectProcessEvent(t *testing.T) *dap.ProcessEvent
- func (c *Client) ExpectProgressEndEvent(t *testing.T) *dap.ProgressEndEvent
- func (c *Client) ExpectProgressStartEvent(t *testing.T) *dap.ProgressStartEvent
- func (c *Client) ExpectProgressUpdateEvent(t *testing.T) *dap.ProgressUpdateEvent
- func (c *Client) ExpectReadMemoryResponse(t *testing.T) *dap.ReadMemoryResponse
- func (c *Client) ExpectRestartFrameResponse(t *testing.T) *dap.RestartFrameResponse
- func (c *Client) ExpectRestartResponse(t *testing.T) *dap.RestartResponse
- func (c *Client) ExpectReverseContinueResponse(t *testing.T) *dap.ReverseContinueResponse
- func (c *Client) ExpectRunInTerminalResponse(t *testing.T) *dap.RunInTerminalResponse
- func (c *Client) ExpectScopesResponse(t *testing.T) *dap.ScopesResponse
- func (c *Client) ExpectSetBreakpointsResponse(t *testing.T) *dap.SetBreakpointsResponse
- func (c *Client) ExpectSetDataBreakpointsResponse(t *testing.T) *dap.SetDataBreakpointsResponse
- func (c *Client) ExpectSetExceptionBreakpointsResponse(t *testing.T) *dap.SetExceptionBreakpointsResponse
- func (c *Client) ExpectSetExpressionResponse(t *testing.T) *dap.SetExpressionResponse
- func (c *Client) ExpectSetFunctionBreakpointsResponse(t *testing.T) *dap.SetFunctionBreakpointsResponse
- func (c *Client) ExpectSetInstructionBreakpointsResponse(t *testing.T) *dap.SetInstructionBreakpointsResponse
- func (c *Client) ExpectSetVariableResponse(t *testing.T) *dap.SetVariableResponse
- func (c *Client) ExpectSourceResponse(t *testing.T) *dap.SourceResponse
- func (c *Client) ExpectStackTraceResponse(t *testing.T) *dap.StackTraceResponse
- func (c *Client) ExpectStepBackResponse(t *testing.T) *dap.StepBackResponse
- func (c *Client) ExpectStepInResponse(t *testing.T) *dap.StepInResponse
- func (c *Client) ExpectStepInTargetsResponse(t *testing.T) *dap.StepInTargetsResponse
- func (c *Client) ExpectStepOutResponse(t *testing.T) *dap.StepOutResponse
- func (c *Client) ExpectStoppedEvent(t *testing.T) *dap.StoppedEvent
- func (c *Client) ExpectTerminateResponse(t *testing.T) *dap.TerminateResponse
- func (c *Client) ExpectTerminateThreadsResponse(t *testing.T) *dap.TerminateThreadsResponse
- func (c *Client) ExpectTerminatedEvent(t *testing.T) *dap.TerminatedEvent
- func (c *Client) ExpectThreadEvent(t *testing.T) *dap.ThreadEvent
- func (c *Client) ExpectThreadsResponse(t *testing.T) *dap.ThreadsResponse
- func (c *Client) ExpectUnsupportedCommandErrorResponse(t *testing.T) *dap.ErrorResponse
- func (c *Client) ExpectVariablesResponse(t *testing.T) *dap.VariablesResponse
- func (c *Client) ExpectVisibleErrorResponse(t *testing.T) *dap.ErrorResponse
- func (c *Client) GotoRequest()
- func (c *Client) GotoTargetsRequest()
- func (c *Client) InitializeRequest()
- func (c *Client) InitializeRequestWithArgs(args dap.InitializeRequestArguments)
- func (c *Client) KnownEvent()
- func (c *Client) LaunchRequest(mode, program string, stopOnEntry bool)
- func (c *Client) LaunchRequestWithArgs(arguments map[string]interface{})
- func (c *Client) LoadedSourcesRequest()
- func (c *Client) ModulesRequest()
- func (c *Client) NextRequest(thread int)
- func (c *Client) PauseRequest(threadId int)
- func (c *Client) ReadMemoryRequest()
- func (c *Client) ReadMessage() (dap.Message, error)
- func (c *Client) RestartFrameRequest()
- func (c *Client) RestartRequest()
- func (c *Client) ReverseContinueRequest()
- func (c *Client) ScopesRequest(frameID int)
- func (c *Client) SetBreakpointsRequest(file string, lines []int)
- func (c *Client) SetConditionalBreakpointsRequest(file string, lines []int, conditions map[int]string)
- func (c *Client) SetDataBreakpointsRequest()
- func (c *Client) SetExceptionBreakpointsRequest()
- func (c *Client) SetExpressionRequest()
- func (c *Client) SetFunctionBreakpointsRequest(breakpoints []dap.FunctionBreakpoint)
- func (c *Client) SetVariableRequest()
- func (c *Client) SourceRequest()
- func (c *Client) StackTraceRequest(threadID, startFrame, levels int)
- func (c *Client) StepBackRequest()
- func (c *Client) StepInRequest(thread int)
- func (c *Client) StepInTargetsRequest()
- func (c *Client) StepOutRequest(thread int)
- func (c *Client) TerminateRequest()
- func (c *Client) TerminateThreadsRequest()
- func (c *Client) ThreadsRequest()
- func (c *Client) UnknownEvent()
- func (c *Client) UnknownRequest()
- func (c *Client) VariablesRequest(variablesReference int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a debugger service client that uses Debug Adaptor Protocol. It does not (yet?) implement service.Client interface. All client methods are synchronous.
func NewClient ¶
NewClient creates a new Client over a TCP connection. Call Close() to close the connection.
func (*Client) AttachRequest ¶
AttachRequest sends an 'attach' request with the specified arguments.
func (*Client) BreakpointLocationsRequest ¶
func (c *Client) BreakpointLocationsRequest()
BreakpointLocationsRequest sends a 'breakpointLocations' request.
func (*Client) CancelRequest ¶
func (c *Client) CancelRequest()
CancelRequest sends a 'cancel' request.
func (*Client) CompletionsRequest ¶
func (c *Client) CompletionsRequest()
CompletionsRequest sends a 'completions' request.
func (*Client) ConfigurationDoneRequest ¶
func (c *Client) ConfigurationDoneRequest()
ConfigurationDoneRequest sends a 'configurationDone' request.
func (*Client) ContinueRequest ¶
ContinueRequest sends a 'continue' request.
func (*Client) DataBreakpointInfoRequest ¶
func (c *Client) DataBreakpointInfoRequest()
DataBreakpointInfoRequest sends a 'dataBreakpointInfo' request.
func (*Client) DisassembleRequest ¶
func (c *Client) DisassembleRequest()
DisassembleRequest sends a 'disassemble' request.
func (*Client) DisconnectRequest ¶
func (c *Client) DisconnectRequest()
DisconnectRequest sends a 'disconnect' request.
func (*Client) DisconnectRequestWithKillOption ¶ added in v1.6.0
DisconnectRequest sends a 'disconnect' request with an option to specify `terminateDebuggee`.
func (*Client) EvaluateRequest ¶
EvaluateRequest sends a 'evaluate' request.
func (*Client) ExceptionInfoRequest ¶
ExceptionInfoRequest sends a 'exceptionInfo' request.
func (*Client) ExpectAttachResponse ¶ added in v1.6.0
ExpectAttachResponse reads a protocol message from the connection and fails the test if the read message is not *AttachResponse.
func (*Client) ExpectBreakpointEvent ¶ added in v1.6.1
ExpectBreakpointEvent reads a protocol message from the connection and fails the test if the read message is not *BreakpointEvent.
func (*Client) ExpectBreakpointLocationsResponse ¶
ExpectBreakpointLocationsResponse reads a protocol message from the connection and fails the test if the read message is not *BreakpointLocationsResponse.
func (*Client) ExpectCancelResponse ¶
ExpectCancelResponse reads a protocol message from the connection and fails the test if the read message is not *CancelResponse.
func (*Client) ExpectCapabilitiesEvent ¶ added in v1.6.1
ExpectCapabilitiesEvent reads a protocol message from the connection and fails the test if the read message is not *CapabilitiesEvent.
func (*Client) ExpectCompletionsResponse ¶
ExpectCompletionsResponse reads a protocol message from the connection and fails the test if the read message is not *CompletionsResponse.
func (*Client) ExpectConfigurationDoneResponse ¶
ExpectConfigurationDoneResponse reads a protocol message from the connection and fails the test if the read message is not *ConfigurationDoneResponse.
func (*Client) ExpectContinueResponse ¶
ExpectContinueResponse reads a protocol message from the connection and fails the test if the read message is not *ContinueResponse.
func (*Client) ExpectContinuedEvent ¶ added in v1.6.1
ExpectContinuedEvent reads a protocol message from the connection and fails the test if the read message is not *ContinuedEvent.
func (*Client) ExpectDataBreakpointInfoResponse ¶
ExpectDataBreakpointInfoResponse reads a protocol message from the connection and fails the test if the read message is not *DataBreakpointInfoResponse.
func (*Client) ExpectDisassembleResponse ¶
ExpectDisassembleResponse reads a protocol message from the connection and fails the test if the read message is not *DisassembleResponse.
func (*Client) ExpectDisconnectResponse ¶
ExpectDisconnectResponse reads a protocol message from the connection and fails the test if the read message is not *DisconnectResponse.
func (*Client) ExpectErrorResponse ¶
ExpectErrorResponse reads a protocol message from the connection and fails the test if the read message is not *ErrorResponse.
func (*Client) ExpectEvaluateResponse ¶ added in v1.5.1
ExpectEvaluateResponse reads a protocol message from the connection and fails the test if the read message is not *EvaluateResponse.
func (*Client) ExpectExceptionInfoResponse ¶
ExpectExceptionInfoResponse reads a protocol message from the connection and fails the test if the read message is not *ExceptionInfoResponse.
func (*Client) ExpectExitedEvent ¶ added in v1.6.1
ExpectExitedEvent reads a protocol message from the connection and fails the test if the read message is not *ExitedEvent.
func (*Client) ExpectGotoResponse ¶ added in v1.6.1
ExpectGotoResponse reads a protocol message from the connection and fails the test if the read message is not *GotoResponse.
func (*Client) ExpectGotoTargetsResponse ¶
ExpectGotoTargetsResponse reads a protocol message from the connection and fails the test if the read message is not *GotoTargetsResponse.
func (*Client) ExpectInitializeResponse ¶
ExpectInitializeResponse reads a protocol message from the connection and fails the test if the read message is not *InitializeResponse.
func (*Client) ExpectInitializeResponseAndCapabilities ¶ added in v1.6.1
func (*Client) ExpectInitializedEvent ¶
ExpectInitializedEvent reads a protocol message from the connection and fails the test if the read message is not *InitializedEvent.
func (*Client) ExpectInvalidatedEvent ¶ added in v1.6.1
ExpectInvalidatedEvent reads a protocol message from the connection and fails the test if the read message is not *InvalidatedEvent.
func (*Client) ExpectInvisibleErrorResponse ¶ added in v1.6.1
func (*Client) ExpectLaunchResponse ¶
ExpectLaunchResponse reads a protocol message from the connection and fails the test if the read message is not *LaunchResponse.
func (*Client) ExpectLoadedSourceEvent ¶ added in v1.6.1
ExpectLoadedSourceEvent reads a protocol message from the connection and fails the test if the read message is not *LoadedSourceEvent.
func (*Client) ExpectLoadedSourcesResponse ¶
ExpectLoadedSourcesResponse reads a protocol message from the connection and fails the test if the read message is not *LoadedSourcesResponse.
func (*Client) ExpectMessage ¶ added in v1.6.1
func (*Client) ExpectModuleEvent ¶ added in v1.6.1
ExpectModuleEvent reads a protocol message from the connection and fails the test if the read message is not *ModuleEvent.
func (*Client) ExpectModulesResponse ¶
ExpectModulesResponse reads a protocol message from the connection and fails the test if the read message is not *ModulesResponse.
func (*Client) ExpectNextResponse ¶ added in v1.5.1
ExpectNextResponse reads a protocol message from the connection and fails the test if the read message is not *NextResponse.
func (*Client) ExpectNotYetImplementedErrorResponse ¶
func (*Client) ExpectOutputEvent ¶ added in v1.5.1
ExpectOutputEvent reads a protocol message from the connection and fails the test if the read message is not *OutputEvent.
func (*Client) ExpectOutputEventDetaching ¶ added in v1.6.1
func (*Client) ExpectOutputEventDetachingKill ¶ added in v1.6.1
func (*Client) ExpectOutputEventDetachingNoKill ¶ added in v1.6.1
func (*Client) ExpectOutputEventProcessExited ¶ added in v1.6.1
func (*Client) ExpectOutputEventRegex ¶ added in v1.6.1
func (*Client) ExpectPauseResponse ¶ added in v1.6.1
ExpectPauseResponse reads a protocol message from the connection and fails the test if the read message is not *PauseResponse.
func (*Client) ExpectProcessEvent ¶ added in v1.6.1
ExpectProcessEvent reads a protocol message from the connection and fails the test if the read message is not *ProcessEvent.
func (*Client) ExpectProgressEndEvent ¶ added in v1.6.1
ExpectProgressEndEvent reads a protocol message from the connection and fails the test if the read message is not *ProgressEndEvent.
func (*Client) ExpectProgressStartEvent ¶ added in v1.6.1
ExpectProgressStartEvent reads a protocol message from the connection and fails the test if the read message is not *ProgressStartEvent.
func (*Client) ExpectProgressUpdateEvent ¶ added in v1.6.1
ExpectProgressUpdateEvent reads a protocol message from the connection and fails the test if the read message is not *ProgressUpdateEvent.
func (*Client) ExpectReadMemoryResponse ¶
ExpectReadMemoryResponse reads a protocol message from the connection and fails the test if the read message is not *ReadMemoryResponse.
func (*Client) ExpectRestartFrameResponse ¶
ExpectRestartFrameResponse reads a protocol message from the connection and fails the test if the read message is not *RestartFrameResponse.
func (*Client) ExpectRestartResponse ¶
ExpectRestartResponse reads a protocol message from the connection and fails the test if the read message is not *RestartResponse.
func (*Client) ExpectReverseContinueResponse ¶
ExpectReverseContinueResponse reads a protocol message from the connection and fails the test if the read message is not *ReverseContinueResponse.
func (*Client) ExpectRunInTerminalResponse ¶ added in v1.6.1
ExpectRunInTerminalResponse reads a protocol message from the connection and fails the test if the read message is not *RunInTerminalResponse.
func (*Client) ExpectScopesResponse ¶ added in v1.5.1
ExpectScopesResponse reads a protocol message from the connection and fails the test if the read message is not *ScopesResponse.
func (*Client) ExpectSetBreakpointsResponse ¶
ExpectSetBreakpointsResponse reads a protocol message from the connection and fails the test if the read message is not *SetBreakpointsResponse.
func (*Client) ExpectSetDataBreakpointsResponse ¶
ExpectSetDataBreakpointsResponse reads a protocol message from the connection and fails the test if the read message is not *SetDataBreakpointsResponse.
func (*Client) ExpectSetExceptionBreakpointsResponse ¶
func (c *Client) ExpectSetExceptionBreakpointsResponse(t *testing.T) *dap.SetExceptionBreakpointsResponse
ExpectSetExceptionBreakpointsResponse reads a protocol message from the connection and fails the test if the read message is not *SetExceptionBreakpointsResponse.
func (*Client) ExpectSetExpressionResponse ¶
ExpectSetExpressionResponse reads a protocol message from the connection and fails the test if the read message is not *SetExpressionResponse.
func (*Client) ExpectSetFunctionBreakpointsResponse ¶
func (c *Client) ExpectSetFunctionBreakpointsResponse(t *testing.T) *dap.SetFunctionBreakpointsResponse
ExpectSetFunctionBreakpointsResponse reads a protocol message from the connection and fails the test if the read message is not *SetFunctionBreakpointsResponse.
func (*Client) ExpectSetInstructionBreakpointsResponse ¶ added in v1.6.1
func (c *Client) ExpectSetInstructionBreakpointsResponse(t *testing.T) *dap.SetInstructionBreakpointsResponse
ExpectSetInstructionBreakpointsResponse reads a protocol message from the connection and fails the test if the read message is not *SetInstructionBreakpointsResponse.
func (*Client) ExpectSetVariableResponse ¶ added in v1.6.1
ExpectSetVariableResponse reads a protocol message from the connection and fails the test if the read message is not *SetVariableResponse.
func (*Client) ExpectSourceResponse ¶ added in v1.6.1
ExpectSourceResponse reads a protocol message from the connection and fails the test if the read message is not *SourceResponse.
func (*Client) ExpectStackTraceResponse ¶
ExpectStackTraceResponse reads a protocol message from the connection and fails the test if the read message is not *StackTraceResponse.
func (*Client) ExpectStepBackResponse ¶
ExpectStepBackResponse reads a protocol message from the connection and fails the test if the read message is not *StepBackResponse.
func (*Client) ExpectStepInResponse ¶ added in v1.5.1
ExpectStepInResponse reads a protocol message from the connection and fails the test if the read message is not *StepInResponse.
func (*Client) ExpectStepInTargetsResponse ¶
ExpectStepInTargetsResponse reads a protocol message from the connection and fails the test if the read message is not *StepInTargetsResponse.
func (*Client) ExpectStepOutResponse ¶ added in v1.5.1
ExpectStepOutResponse reads a protocol message from the connection and fails the test if the read message is not *StepOutResponse.
func (*Client) ExpectStoppedEvent ¶
ExpectStoppedEvent reads a protocol message from the connection and fails the test if the read message is not *StoppedEvent.
func (*Client) ExpectTerminateResponse ¶
ExpectTerminateResponse reads a protocol message from the connection and fails the test if the read message is not *TerminateResponse.
func (*Client) ExpectTerminateThreadsResponse ¶
ExpectTerminateThreadsResponse reads a protocol message from the connection and fails the test if the read message is not *TerminateThreadsResponse.
func (*Client) ExpectTerminatedEvent ¶
ExpectTerminatedEvent reads a protocol message from the connection and fails the test if the read message is not *TerminatedEvent.
func (*Client) ExpectThreadEvent ¶ added in v1.6.1
ExpectThreadEvent reads a protocol message from the connection and fails the test if the read message is not *ThreadEvent.
func (*Client) ExpectThreadsResponse ¶
ExpectThreadsResponse reads a protocol message from the connection and fails the test if the read message is not *ThreadsResponse.
func (*Client) ExpectUnsupportedCommandErrorResponse ¶
func (*Client) ExpectVariablesResponse ¶ added in v1.5.1
ExpectVariablesResponse reads a protocol message from the connection and fails the test if the read message is not *VariablesResponse.
func (*Client) ExpectVisibleErrorResponse ¶ added in v1.5.1
func (*Client) GotoTargetsRequest ¶
func (c *Client) GotoTargetsRequest()
GotoTargetsRequest sends a 'gotoTargets' request.
func (*Client) InitializeRequest ¶
func (c *Client) InitializeRequest()
InitializeRequest sends an 'initialize' request.
func (*Client) InitializeRequestWithArgs ¶ added in v1.6.1
func (c *Client) InitializeRequestWithArgs(args dap.InitializeRequestArguments)
InitializeRequestWithArgs sends an 'initialize' request with specified arguments.
func (*Client) KnownEvent ¶
func (c *Client) KnownEvent()
KnownEvent passes decode checks, but delve has no 'case' to handle it. This behaves the same way a new request type added to go-dap, but not to delve.
func (*Client) LaunchRequest ¶
LaunchRequest sends a 'launch' request with the specified args.
func (*Client) LaunchRequestWithArgs ¶
LaunchRequestWithArgs takes a map of untyped implementation-specific arguments to send a 'launch' request. This version can be used to test for values of unexpected types or unspecified values.
func (*Client) LoadedSourcesRequest ¶
func (c *Client) LoadedSourcesRequest()
LoadedSourcesRequest sends a 'loadedSources' request.
func (*Client) ModulesRequest ¶
func (c *Client) ModulesRequest()
ModulesRequest sends a 'modules' request.
func (*Client) NextRequest ¶
NextRequest sends a 'next' request.
func (*Client) PauseRequest ¶
PauseRequest sends a 'pause' request.
func (*Client) ReadMemoryRequest ¶
func (c *Client) ReadMemoryRequest()
ReadMemoryRequest sends a 'readMemory' request.
func (*Client) ReadMessage ¶
func (*Client) RestartFrameRequest ¶
func (c *Client) RestartFrameRequest()
RestartFrameRequest sends a 'restartFrame' request.
func (*Client) RestartRequest ¶
func (c *Client) RestartRequest()
RestartRequest sends a 'restart' request.
func (*Client) ReverseContinueRequest ¶
func (c *Client) ReverseContinueRequest()
ReverseContinueRequest sends a 'reverseContinue' request.
func (*Client) ScopesRequest ¶
ScopesRequest sends a 'scopes' request.
func (*Client) SetBreakpointsRequest ¶
SetBreakpointsRequest sends a 'setBreakpoints' request.
func (*Client) SetConditionalBreakpointsRequest ¶ added in v1.5.1
func (c *Client) SetConditionalBreakpointsRequest(file string, lines []int, conditions map[int]string)
SetBreakpointsRequest sends a 'setBreakpoints' request with conditions.
func (*Client) SetDataBreakpointsRequest ¶
func (c *Client) SetDataBreakpointsRequest()
SetDataBreakpointsRequest sends a 'setDataBreakpoints' request.
func (*Client) SetExceptionBreakpointsRequest ¶
func (c *Client) SetExceptionBreakpointsRequest()
SetExceptionBreakpointsRequest sends a 'setExceptionBreakpoints' request.
func (*Client) SetExpressionRequest ¶
func (c *Client) SetExpressionRequest()
SetExpressionRequest sends a 'setExpression' request.
func (*Client) SetFunctionBreakpointsRequest ¶
func (c *Client) SetFunctionBreakpointsRequest(breakpoints []dap.FunctionBreakpoint)
SetFunctionBreakpointsRequest sends a 'setFunctionBreakpoints' request.
func (*Client) SetVariableRequest ¶
func (c *Client) SetVariableRequest()
SetVariableRequest sends a 'setVariable' request.
func (*Client) SourceRequest ¶
func (c *Client) SourceRequest()
SourceRequest sends a 'source' request.
func (*Client) StackTraceRequest ¶
StackTraceRequest sends a 'stackTrace' request.
func (*Client) StepBackRequest ¶
func (c *Client) StepBackRequest()
StepBackRequest sends a 'stepBack' request.
func (*Client) StepInRequest ¶
StepInRequest sends a 'stepIn' request.
func (*Client) StepInTargetsRequest ¶
func (c *Client) StepInTargetsRequest()
StepInTargetsRequest sends a 'stepInTargets' request.
func (*Client) StepOutRequest ¶
StepOutRequest sends a 'stepOut' request.
func (*Client) TerminateRequest ¶
func (c *Client) TerminateRequest()
TeriminateRequest sends a 'terminate' request.
func (*Client) TerminateThreadsRequest ¶
func (c *Client) TerminateThreadsRequest()
TerminateThreadsRequest sends a 'terminateThreads' request.
func (*Client) ThreadsRequest ¶
func (c *Client) ThreadsRequest()
ThreadsRequest sends a 'threads' request.
func (*Client) UnknownEvent ¶
func (c *Client) UnknownEvent()
UnknownEvent triggers dap.DecodeProtocolMessageFieldError.
func (*Client) UnknownRequest ¶
func (c *Client) UnknownRequest()
UnknownRequest triggers dap.DecodeProtocolMessageFieldError.
func (*Client) VariablesRequest ¶
VariablesRequest sends a 'variables' request.