Documentation ¶
Overview ¶
Package daptest provides a sample client with utilities for DAP mode testing.
Index ¶
- Constants
- type Client
- func (c *Client) AttachRequest(arguments map[string]interface{})
- func (c *Client) BadRequest()
- func (c *Client) BreakpointLocationsRequest()
- func (c *Client) CancelRequest()
- func (c *Client) CheckAttachResponse(t *testing.T, m dap.Message) *dap.AttachResponse
- func (c *Client) CheckBreakpointEvent(t *testing.T, m dap.Message) *dap.BreakpointEvent
- func (c *Client) CheckBreakpointLocationsResponse(t *testing.T, m dap.Message) *dap.BreakpointLocationsResponse
- func (c *Client) CheckCancelResponse(t *testing.T, m dap.Message) *dap.CancelResponse
- func (c *Client) CheckCapabilitiesEvent(t *testing.T, m dap.Message) *dap.CapabilitiesEvent
- func (c *Client) CheckCompletionsResponse(t *testing.T, m dap.Message) *dap.CompletionsResponse
- func (c *Client) CheckConfigurationDoneResponse(t *testing.T, m dap.Message) *dap.ConfigurationDoneResponse
- func (c *Client) CheckContinueResponse(t *testing.T, m dap.Message) *dap.ContinueResponse
- func (c *Client) CheckContinuedEvent(t *testing.T, m dap.Message) *dap.ContinuedEvent
- func (c *Client) CheckDataBreakpointInfoResponse(t *testing.T, m dap.Message) *dap.DataBreakpointInfoResponse
- func (c *Client) CheckDisassembleResponse(t *testing.T, m dap.Message) *dap.DisassembleResponse
- func (c *Client) CheckDisconnectResponse(t *testing.T, m dap.Message) *dap.DisconnectResponse
- func (c *Client) CheckErrorResponse(t *testing.T, m dap.Message) *dap.ErrorResponse
- func (c *Client) CheckEvaluateResponse(t *testing.T, m dap.Message) *dap.EvaluateResponse
- func (c *Client) CheckExceptionInfoResponse(t *testing.T, m dap.Message) *dap.ExceptionInfoResponse
- func (c *Client) CheckExitedEvent(t *testing.T, m dap.Message) *dap.ExitedEvent
- func (c *Client) CheckGotoResponse(t *testing.T, m dap.Message) *dap.GotoResponse
- func (c *Client) CheckGotoTargetsResponse(t *testing.T, m dap.Message) *dap.GotoTargetsResponse
- func (c *Client) CheckInitializeResponse(t *testing.T, m dap.Message) *dap.InitializeResponse
- func (c *Client) CheckInitializedEvent(t *testing.T, m dap.Message) *dap.InitializedEvent
- func (c *Client) CheckInvalidatedEvent(t *testing.T, m dap.Message) *dap.InvalidatedEvent
- func (c *Client) CheckLaunchResponse(t *testing.T, m dap.Message) *dap.LaunchResponse
- func (c *Client) CheckLoadedSourceEvent(t *testing.T, m dap.Message) *dap.LoadedSourceEvent
- func (c *Client) CheckLoadedSourcesResponse(t *testing.T, m dap.Message) *dap.LoadedSourcesResponse
- func (c *Client) CheckMemoryEvent(t *testing.T, m dap.Message) *dap.MemoryEvent
- func (c *Client) CheckModuleEvent(t *testing.T, m dap.Message) *dap.ModuleEvent
- func (c *Client) CheckModulesResponse(t *testing.T, m dap.Message) *dap.ModulesResponse
- func (c *Client) CheckNextResponse(t *testing.T, m dap.Message) *dap.NextResponse
- func (c *Client) CheckOutputEvent(t *testing.T, m dap.Message) *dap.OutputEvent
- func (c *Client) CheckPauseResponse(t *testing.T, m dap.Message) *dap.PauseResponse
- func (c *Client) CheckProcessEvent(t *testing.T, m dap.Message) *dap.ProcessEvent
- func (c *Client) CheckProgressEndEvent(t *testing.T, m dap.Message) *dap.ProgressEndEvent
- func (c *Client) CheckProgressStartEvent(t *testing.T, m dap.Message) *dap.ProgressStartEvent
- func (c *Client) CheckProgressUpdateEvent(t *testing.T, m dap.Message) *dap.ProgressUpdateEvent
- func (c *Client) CheckReadMemoryResponse(t *testing.T, m dap.Message) *dap.ReadMemoryResponse
- func (c *Client) CheckRestartFrameResponse(t *testing.T, m dap.Message) *dap.RestartFrameResponse
- func (c *Client) CheckRestartResponse(t *testing.T, m dap.Message) *dap.RestartResponse
- func (c *Client) CheckReverseContinueResponse(t *testing.T, m dap.Message) *dap.ReverseContinueResponse
- func (c *Client) CheckRunInTerminalResponse(t *testing.T, m dap.Message) *dap.RunInTerminalResponse
- func (c *Client) CheckScopesResponse(t *testing.T, m dap.Message) *dap.ScopesResponse
- func (c *Client) CheckSetBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetBreakpointsResponse
- func (c *Client) CheckSetDataBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetDataBreakpointsResponse
- func (c *Client) CheckSetExceptionBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetExceptionBreakpointsResponse
- func (c *Client) CheckSetExpressionResponse(t *testing.T, m dap.Message) *dap.SetExpressionResponse
- func (c *Client) CheckSetFunctionBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetFunctionBreakpointsResponse
- func (c *Client) CheckSetInstructionBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetInstructionBreakpointsResponse
- func (c *Client) CheckSetVariableResponse(t *testing.T, m dap.Message) *dap.SetVariableResponse
- func (c *Client) CheckSourceResponse(t *testing.T, m dap.Message) *dap.SourceResponse
- func (c *Client) CheckStackTraceResponse(t *testing.T, m dap.Message) *dap.StackTraceResponse
- func (c *Client) CheckStepBackResponse(t *testing.T, m dap.Message) *dap.StepBackResponse
- func (c *Client) CheckStepInResponse(t *testing.T, m dap.Message) *dap.StepInResponse
- func (c *Client) CheckStepInTargetsResponse(t *testing.T, m dap.Message) *dap.StepInTargetsResponse
- func (c *Client) CheckStepOutResponse(t *testing.T, m dap.Message) *dap.StepOutResponse
- func (c *Client) CheckStopLocation(t *testing.T, thread int, name string, line int)
- func (c *Client) CheckStoppedEvent(t *testing.T, m dap.Message) *dap.StoppedEvent
- func (c *Client) CheckTerminateResponse(t *testing.T, m dap.Message) *dap.TerminateResponse
- func (c *Client) CheckTerminateThreadsResponse(t *testing.T, m dap.Message) *dap.TerminateThreadsResponse
- func (c *Client) CheckTerminatedEvent(t *testing.T, m dap.Message) *dap.TerminatedEvent
- func (c *Client) CheckThreadEvent(t *testing.T, m dap.Message) *dap.ThreadEvent
- func (c *Client) CheckThreadsResponse(t *testing.T, m dap.Message) *dap.ThreadsResponse
- func (c *Client) CheckVariablesResponse(t *testing.T, m dap.Message) *dap.VariablesResponse
- func (c *Client) CheckWriteMemoryResponse(t *testing.T, m dap.Message) *dap.WriteMemoryResponse
- 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(memoryReference string, instructionOffset, instructionCount int)
- 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) ExpectCapabilitiesEventSupportTerminateDebuggee(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) ExpectErrorResponseWith(t *testing.T, id int, message string, showUser bool) *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) ExpectMemoryEvent(t *testing.T) *dap.MemoryEvent
- 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) ExpectOutputEventClosingClient(t *testing.T, status string) *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) ExpectOutputEventProcessExitedAnyStatus(t *testing.T) *dap.OutputEvent
- func (c *Client) ExpectOutputEventRegex(t *testing.T, want string) *dap.OutputEvent
- func (c *Client) ExpectOutputEventTerminating(t *testing.T) *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) ExpectWriteMemoryResponse(t *testing.T) *dap.WriteMemoryResponse
- func (c *Client) GotoRequest()
- func (c *Client) GotoTargetsRequest()
- func (c *Client) IndexedVariablesRequest(variablesReference, start, count int)
- 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) NamedVariablesRequest(variablesReference int)
- func (c *Client) NextInstructionRequest(thread int)
- 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) SetBreakpointsRequestWithArgs(file string, lines []int, ...)
- func (c *Client) SetDataBreakpointsRequest()
- func (c *Client) SetExceptionBreakpointsRequest()
- func (c *Client) SetExpressionRequest()
- func (c *Client) SetFunctionBreakpointsRequest(breakpoints []dap.FunctionBreakpoint)
- func (c *Client) SetInstructionBreakpointsRequest(breakpoints []dap.InstructionBreakpoint)
- func (c *Client) SetVariableRequest(variablesRef int, name, value string)
- func (c *Client) SourceRequest()
- func (c *Client) StackTraceRequest(threadID, startFrame, levels int)
- func (c *Client) StepBackRequest()
- func (c *Client) StepInInstructionRequest(thread int)
- func (c *Client) StepInRequest(thread int)
- func (c *Client) StepInTargetsRequest()
- func (c *Client) StepOutInstructionRequest(thread int)
- 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 ¶
const ClosingClient = "Closing client session, but leaving multi-client DAP server at .+:[0-9]+ with debuggee %s\n"
const ProcessExited = `Process [0-9]+ has exited with status %s\n`
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 NewClientFromConn ¶
NewClientFromConn creates a new Client with the given 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) CheckAttachResponse ¶
CheckAttachResponse fails the test if m is not *AttachResponse.
func (*Client) CheckBreakpointEvent ¶
CheckBreakpointEvent fails the test if m is not *BreakpointEvent.
func (*Client) CheckBreakpointLocationsResponse ¶
func (c *Client) CheckBreakpointLocationsResponse(t *testing.T, m dap.Message) *dap.BreakpointLocationsResponse
CheckBreakpointLocationsResponse fails the test if m is not *BreakpointLocationsResponse.
func (*Client) CheckCancelResponse ¶
CheckCancelResponse fails the test if m is not *CancelResponse.
func (*Client) CheckCapabilitiesEvent ¶
CheckCapabilitiesEvent fails the test if m is not *CapabilitiesEvent.
func (*Client) CheckCompletionsResponse ¶
CheckCompletionsResponse fails the test if m is not *CompletionsResponse.
func (*Client) CheckConfigurationDoneResponse ¶
func (c *Client) CheckConfigurationDoneResponse(t *testing.T, m dap.Message) *dap.ConfigurationDoneResponse
CheckConfigurationDoneResponse fails the test if m is not *ConfigurationDoneResponse.
func (*Client) CheckContinueResponse ¶
CheckContinueResponse fails the test if m is not *ContinueResponse.
func (*Client) CheckContinuedEvent ¶
CheckContinuedEvent fails the test if m is not *ContinuedEvent.
func (*Client) CheckDataBreakpointInfoResponse ¶
func (c *Client) CheckDataBreakpointInfoResponse(t *testing.T, m dap.Message) *dap.DataBreakpointInfoResponse
CheckDataBreakpointInfoResponse fails the test if m is not *DataBreakpointInfoResponse.
func (*Client) CheckDisassembleResponse ¶
CheckDisassembleResponse fails the test if m is not *DisassembleResponse.
func (*Client) CheckDisconnectResponse ¶
CheckDisconnectResponse fails the test if m is not *DisconnectResponse.
func (*Client) CheckErrorResponse ¶
CheckErrorResponse fails the test if m is not *ErrorResponse.
func (*Client) CheckEvaluateResponse ¶
CheckEvaluateResponse fails the test if m is not *EvaluateResponse.
func (*Client) CheckExceptionInfoResponse ¶
CheckExceptionInfoResponse fails the test if m is not *ExceptionInfoResponse.
func (*Client) CheckExitedEvent ¶
CheckExitedEvent fails the test if m is not *ExitedEvent.
func (*Client) CheckGotoResponse ¶
CheckGotoResponse fails the test if m is not *GotoResponse.
func (*Client) CheckGotoTargetsResponse ¶
CheckGotoTargetsResponse fails the test if m is not *GotoTargetsResponse.
func (*Client) CheckInitializeResponse ¶
CheckInitializeResponse fails the test if m is not *InitializeResponse.
func (*Client) CheckInitializedEvent ¶
CheckInitializedEvent fails the test if m is not *InitializedEvent.
func (*Client) CheckInvalidatedEvent ¶
CheckInvalidatedEvent fails the test if m is not *InvalidatedEvent.
func (*Client) CheckLaunchResponse ¶
CheckLaunchResponse fails the test if m is not *LaunchResponse.
func (*Client) CheckLoadedSourceEvent ¶
CheckLoadedSourceEvent fails the test if m is not *LoadedSourceEvent.
func (*Client) CheckLoadedSourcesResponse ¶
CheckLoadedSourcesResponse fails the test if m is not *LoadedSourcesResponse.
func (*Client) CheckMemoryEvent ¶
CheckMemoryEvent fails the test if m is not *MemoryEvent.
func (*Client) CheckModuleEvent ¶
CheckModuleEvent fails the test if m is not *ModuleEvent.
func (*Client) CheckModulesResponse ¶
CheckModulesResponse fails the test if m is not *ModulesResponse.
func (*Client) CheckNextResponse ¶
CheckNextResponse fails the test if m is not *NextResponse.
func (*Client) CheckOutputEvent ¶
CheckOutputEvent fails the test if m is not *OutputEvent.
func (*Client) CheckPauseResponse ¶
CheckPauseResponse fails the test if m is not *PauseResponse.
func (*Client) CheckProcessEvent ¶
CheckProcessEvent fails the test if m is not *ProcessEvent.
func (*Client) CheckProgressEndEvent ¶
CheckProgressEndEvent fails the test if m is not *ProgressEndEvent.
func (*Client) CheckProgressStartEvent ¶
CheckProgressStartEvent fails the test if m is not *ProgressStartEvent.
func (*Client) CheckProgressUpdateEvent ¶
CheckProgressUpdateEvent fails the test if m is not *ProgressUpdateEvent.
func (*Client) CheckReadMemoryResponse ¶
CheckReadMemoryResponse fails the test if m is not *ReadMemoryResponse.
func (*Client) CheckRestartFrameResponse ¶
CheckRestartFrameResponse fails the test if m is not *RestartFrameResponse.
func (*Client) CheckRestartResponse ¶
CheckRestartResponse fails the test if m is not *RestartResponse.
func (*Client) CheckReverseContinueResponse ¶
func (c *Client) CheckReverseContinueResponse(t *testing.T, m dap.Message) *dap.ReverseContinueResponse
CheckReverseContinueResponse fails the test if m is not *ReverseContinueResponse.
func (*Client) CheckRunInTerminalResponse ¶
CheckRunInTerminalResponse fails the test if m is not *RunInTerminalResponse.
func (*Client) CheckScopesResponse ¶
CheckScopesResponse fails the test if m is not *ScopesResponse.
func (*Client) CheckSetBreakpointsResponse ¶
func (c *Client) CheckSetBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetBreakpointsResponse
CheckSetBreakpointsResponse fails the test if m is not *SetBreakpointsResponse.
func (*Client) CheckSetDataBreakpointsResponse ¶
func (c *Client) CheckSetDataBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetDataBreakpointsResponse
CheckSetDataBreakpointsResponse fails the test if m is not *SetDataBreakpointsResponse.
func (*Client) CheckSetExceptionBreakpointsResponse ¶
func (c *Client) CheckSetExceptionBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetExceptionBreakpointsResponse
CheckSetExceptionBreakpointsResponse fails the test if m is not *SetExceptionBreakpointsResponse.
func (*Client) CheckSetExpressionResponse ¶
CheckSetExpressionResponse fails the test if m is not *SetExpressionResponse.
func (*Client) CheckSetFunctionBreakpointsResponse ¶
func (c *Client) CheckSetFunctionBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetFunctionBreakpointsResponse
CheckSetFunctionBreakpointsResponse fails the test if m is not *SetFunctionBreakpointsResponse.
func (*Client) CheckSetInstructionBreakpointsResponse ¶
func (c *Client) CheckSetInstructionBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetInstructionBreakpointsResponse
CheckSetInstructionBreakpointsResponse fails the test if m is not *SetInstructionBreakpointsResponse.
func (*Client) CheckSetVariableResponse ¶
CheckSetVariableResponse fails the test if m is not *SetVariableResponse.
func (*Client) CheckSourceResponse ¶
CheckSourceResponse fails the test if m is not *SourceResponse.
func (*Client) CheckStackTraceResponse ¶
CheckStackTraceResponse fails the test if m is not *StackTraceResponse.
func (*Client) CheckStepBackResponse ¶
CheckStepBackResponse fails the test if m is not *StepBackResponse.
func (*Client) CheckStepInResponse ¶
CheckStepInResponse fails the test if m is not *StepInResponse.
func (*Client) CheckStepInTargetsResponse ¶
CheckStepInTargetsResponse fails the test if m is not *StepInTargetsResponse.
func (*Client) CheckStepOutResponse ¶
CheckStepOutResponse fails the test if m is not *StepOutResponse.
func (*Client) CheckStopLocation ¶
func (*Client) CheckStoppedEvent ¶
CheckStoppedEvent fails the test if m is not *StoppedEvent.
func (*Client) CheckTerminateResponse ¶
CheckTerminateResponse fails the test if m is not *TerminateResponse.
func (*Client) CheckTerminateThreadsResponse ¶
func (c *Client) CheckTerminateThreadsResponse(t *testing.T, m dap.Message) *dap.TerminateThreadsResponse
CheckTerminateThreadsResponse fails the test if m is not *TerminateThreadsResponse.
func (*Client) CheckTerminatedEvent ¶
CheckTerminatedEvent fails the test if m is not *TerminatedEvent.
func (*Client) CheckThreadEvent ¶
CheckThreadEvent fails the test if m is not *ThreadEvent.
func (*Client) CheckThreadsResponse ¶
CheckThreadsResponse fails the test if m is not *ThreadsResponse.
func (*Client) CheckVariablesResponse ¶
CheckVariablesResponse fails the test if m is not *VariablesResponse.
func (*Client) CheckWriteMemoryResponse ¶
CheckWriteMemoryResponse fails the test if m is not *WriteMemoryResponse.
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(memoryReference string, instructionOffset, instructionCount int)
DisassembleRequest sends a 'disassemble' request.
func (*Client) DisconnectRequest ¶
func (c *Client) DisconnectRequest()
DisconnectRequest sends a 'disconnect' request.
func (*Client) DisconnectRequestWithKillOption ¶
DisconnectRequestWithKillOption 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 ¶
ExpectAttachResponse reads a protocol message from the connection and fails the test if the read message is not *AttachResponse.
func (*Client) ExpectBreakpointEvent ¶
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 ¶
ExpectCapabilitiesEvent reads a protocol message from the connection and fails the test if the read message is not *CapabilitiesEvent.
func (*Client) ExpectCapabilitiesEventSupportTerminateDebuggee ¶
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 ¶
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) ExpectErrorResponseWith ¶
func (*Client) ExpectEvaluateResponse ¶
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 ¶
ExpectExitedEvent reads a protocol message from the connection and fails the test if the read message is not *ExitedEvent.
func (*Client) ExpectGotoResponse ¶
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 ¶
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 ¶
ExpectInvalidatedEvent reads a protocol message from the connection and fails the test if the read message is not *InvalidatedEvent.
func (*Client) ExpectInvisibleErrorResponse ¶
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 ¶
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) ExpectMemoryEvent ¶
ExpectMemoryEvent reads a protocol message from the connection and fails the test if the read message is not *MemoryEvent.
func (*Client) ExpectMessage ¶
func (*Client) ExpectModuleEvent ¶
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 ¶
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 ¶
ExpectOutputEvent reads a protocol message from the connection and fails the test if the read message is not *OutputEvent.
func (*Client) ExpectOutputEventClosingClient ¶
func (*Client) ExpectOutputEventDetaching ¶
func (*Client) ExpectOutputEventDetachingKill ¶
func (*Client) ExpectOutputEventDetachingNoKill ¶
func (*Client) ExpectOutputEventProcessExited ¶
func (*Client) ExpectOutputEventProcessExitedAnyStatus ¶
func (*Client) ExpectOutputEventRegex ¶
func (*Client) ExpectOutputEventTerminating ¶
func (*Client) ExpectPauseResponse ¶
ExpectPauseResponse reads a protocol message from the connection and fails the test if the read message is not *PauseResponse.
func (*Client) ExpectProcessEvent ¶
ExpectProcessEvent reads a protocol message from the connection and fails the test if the read message is not *ProcessEvent.
func (*Client) ExpectProgressEndEvent ¶
ExpectProgressEndEvent reads a protocol message from the connection and fails the test if the read message is not *ProgressEndEvent.
func (*Client) ExpectProgressStartEvent ¶
ExpectProgressStartEvent reads a protocol message from the connection and fails the test if the read message is not *ProgressStartEvent.
func (*Client) ExpectProgressUpdateEvent ¶
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 ¶
ExpectRunInTerminalResponse reads a protocol message from the connection and fails the test if the read message is not *RunInTerminalResponse.
func (*Client) ExpectScopesResponse ¶
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 ¶
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 ¶
ExpectSetVariableResponse reads a protocol message from the connection and fails the test if the read message is not *SetVariableResponse.
func (*Client) ExpectSourceResponse ¶
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 ¶
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 ¶
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 ¶
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 ¶
ExpectVariablesResponse reads a protocol message from the connection and fails the test if the read message is not *VariablesResponse.
func (*Client) ExpectVisibleErrorResponse ¶
func (*Client) ExpectWriteMemoryResponse ¶
ExpectWriteMemoryResponse reads a protocol message from the connection and fails the test if the read message is not *WriteMemoryResponse.
func (*Client) GotoTargetsRequest ¶
func (c *Client) GotoTargetsRequest()
GotoTargetsRequest sends a 'gotoTargets' request.
func (*Client) IndexedVariablesRequest ¶
IndexedVariablesRequest sends a 'variables' request.
func (*Client) InitializeRequest ¶
func (c *Client) InitializeRequest()
InitializeRequest sends an 'initialize' request.
func (*Client) InitializeRequestWithArgs ¶
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) NamedVariablesRequest ¶
NamedVariablesRequest sends a 'variables' request.
func (*Client) NextInstructionRequest ¶
NextInstructionRequest sends a 'next' request with granularity 'instruction'.
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) SetBreakpointsRequestWithArgs ¶
func (c *Client) SetBreakpointsRequestWithArgs(file string, lines []int, conditions, hitConditions, logMessages map[int]string)
SetBreakpointsRequestWithArgs sends a 'setBreakpoints' request with an option to specify conditions, hit conditions, and log messages.
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) SetInstructionBreakpointsRequest ¶
func (c *Client) SetInstructionBreakpointsRequest(breakpoints []dap.InstructionBreakpoint)
SetInstructionBreakpointsRequest sends a 'setInstructionBreakpoints' request.
func (*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) StepInInstructionRequest ¶
StepInInstructionRequest sends a 'stepIn' request with granularity 'instruction'.
func (*Client) StepInRequest ¶
StepInRequest sends a 'stepIn' request.
func (*Client) StepInTargetsRequest ¶
func (c *Client) StepInTargetsRequest()
StepInTargetsRequest sends a 'stepInTargets' request.
func (*Client) StepOutInstructionRequest ¶
StepOutInstructionRequest sends a 'stepOut' request with granularity 'instruction'.
func (*Client) StepOutRequest ¶
StepOutRequest sends a 'stepOut' request.
func (*Client) TerminateRequest ¶
func (c *Client) TerminateRequest()
TerminateRequest 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.