daptest

package
v1.22.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package daptest provides a sample client with utilities for DAP mode testing.

Index

Constants

View Source
const ClosingClient = "Closing client session, but leaving multi-client DAP server at .+:[0-9]+ with debuggee %s\n"
View Source
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

func NewClient(addr string) *Client

NewClient creates a new Client over a TCP connection. Call Close() to close the connection.

func NewClientFromConn added in v1.7.3

func NewClientFromConn(conn net.Conn) *Client

NewClientFromConn creates a new Client with the given TCP connection. Call Close to close the connection.

func (*Client) AttachRequest

func (c *Client) AttachRequest(arguments map[string]interface{})

AttachRequest sends an 'attach' request with the specified arguments.

func (*Client) BadRequest added in v1.7.0

func (c *Client) BadRequest()

BadRequest triggers an unmarshal error.

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 added in v1.7.0

func (c *Client) CheckAttachResponse(t *testing.T, m dap.Message) *dap.AttachResponse

CheckAttachResponse fails the test if m is not *AttachResponse.

func (*Client) CheckBreakpointEvent added in v1.7.0

func (c *Client) CheckBreakpointEvent(t *testing.T, m dap.Message) *dap.BreakpointEvent

CheckBreakpointEvent fails the test if m is not *BreakpointEvent.

func (*Client) CheckBreakpointLocationsResponse added in v1.7.0

func (c *Client) CheckBreakpointLocationsResponse(t *testing.T, m dap.Message) *dap.BreakpointLocationsResponse

CheckBreakpointLocationsResponse fails the test if m is not *BreakpointLocationsResponse.

func (*Client) CheckCancelResponse added in v1.7.0

func (c *Client) CheckCancelResponse(t *testing.T, m dap.Message) *dap.CancelResponse

CheckCancelResponse fails the test if m is not *CancelResponse.

func (*Client) CheckCapabilitiesEvent added in v1.7.0

func (c *Client) CheckCapabilitiesEvent(t *testing.T, m dap.Message) *dap.CapabilitiesEvent

CheckCapabilitiesEvent fails the test if m is not *CapabilitiesEvent.

func (*Client) CheckCompletionsResponse added in v1.7.0

func (c *Client) CheckCompletionsResponse(t *testing.T, m dap.Message) *dap.CompletionsResponse

CheckCompletionsResponse fails the test if m is not *CompletionsResponse.

func (*Client) CheckConfigurationDoneResponse added in v1.7.0

func (c *Client) CheckConfigurationDoneResponse(t *testing.T, m dap.Message) *dap.ConfigurationDoneResponse

CheckConfigurationDoneResponse fails the test if m is not *ConfigurationDoneResponse.

func (*Client) CheckContinueResponse added in v1.7.0

func (c *Client) CheckContinueResponse(t *testing.T, m dap.Message) *dap.ContinueResponse

CheckContinueResponse fails the test if m is not *ContinueResponse.

func (*Client) CheckContinuedEvent added in v1.7.0

func (c *Client) CheckContinuedEvent(t *testing.T, m dap.Message) *dap.ContinuedEvent

CheckContinuedEvent fails the test if m is not *ContinuedEvent.

func (*Client) CheckDataBreakpointInfoResponse added in v1.7.0

func (c *Client) CheckDataBreakpointInfoResponse(t *testing.T, m dap.Message) *dap.DataBreakpointInfoResponse

CheckDataBreakpointInfoResponse fails the test if m is not *DataBreakpointInfoResponse.

func (*Client) CheckDisassembleResponse added in v1.7.0

func (c *Client) CheckDisassembleResponse(t *testing.T, m dap.Message) *dap.DisassembleResponse

CheckDisassembleResponse fails the test if m is not *DisassembleResponse.

func (*Client) CheckDisconnectResponse added in v1.7.0

func (c *Client) CheckDisconnectResponse(t *testing.T, m dap.Message) *dap.DisconnectResponse

CheckDisconnectResponse fails the test if m is not *DisconnectResponse.

func (*Client) CheckErrorResponse added in v1.7.0

func (c *Client) CheckErrorResponse(t *testing.T, m dap.Message) *dap.ErrorResponse

CheckErrorResponse fails the test if m is not *ErrorResponse.

func (*Client) CheckEvaluateResponse added in v1.7.0

func (c *Client) CheckEvaluateResponse(t *testing.T, m dap.Message) *dap.EvaluateResponse

CheckEvaluateResponse fails the test if m is not *EvaluateResponse.

func (*Client) CheckExceptionInfoResponse added in v1.7.0

func (c *Client) CheckExceptionInfoResponse(t *testing.T, m dap.Message) *dap.ExceptionInfoResponse

CheckExceptionInfoResponse fails the test if m is not *ExceptionInfoResponse.

func (*Client) CheckExitedEvent added in v1.7.0

func (c *Client) CheckExitedEvent(t *testing.T, m dap.Message) *dap.ExitedEvent

CheckExitedEvent fails the test if m is not *ExitedEvent.

func (*Client) CheckGotoResponse added in v1.7.0

func (c *Client) CheckGotoResponse(t *testing.T, m dap.Message) *dap.GotoResponse

CheckGotoResponse fails the test if m is not *GotoResponse.

func (*Client) CheckGotoTargetsResponse added in v1.7.0

func (c *Client) CheckGotoTargetsResponse(t *testing.T, m dap.Message) *dap.GotoTargetsResponse

CheckGotoTargetsResponse fails the test if m is not *GotoTargetsResponse.

func (*Client) CheckInitializeResponse added in v1.7.0

func (c *Client) CheckInitializeResponse(t *testing.T, m dap.Message) *dap.InitializeResponse

CheckInitializeResponse fails the test if m is not *InitializeResponse.

func (*Client) CheckInitializedEvent added in v1.7.0

func (c *Client) CheckInitializedEvent(t *testing.T, m dap.Message) *dap.InitializedEvent

CheckInitializedEvent fails the test if m is not *InitializedEvent.

func (*Client) CheckInvalidatedEvent added in v1.7.0

func (c *Client) CheckInvalidatedEvent(t *testing.T, m dap.Message) *dap.InvalidatedEvent

CheckInvalidatedEvent fails the test if m is not *InvalidatedEvent.

func (*Client) CheckLaunchResponse added in v1.7.0

func (c *Client) CheckLaunchResponse(t *testing.T, m dap.Message) *dap.LaunchResponse

CheckLaunchResponse fails the test if m is not *LaunchResponse.

func (*Client) CheckLoadedSourceEvent added in v1.7.0

func (c *Client) CheckLoadedSourceEvent(t *testing.T, m dap.Message) *dap.LoadedSourceEvent

CheckLoadedSourceEvent fails the test if m is not *LoadedSourceEvent.

func (*Client) CheckLoadedSourcesResponse added in v1.7.0

func (c *Client) CheckLoadedSourcesResponse(t *testing.T, m dap.Message) *dap.LoadedSourcesResponse

CheckLoadedSourcesResponse fails the test if m is not *LoadedSourcesResponse.

func (*Client) CheckMemoryEvent added in v1.7.3

func (c *Client) CheckMemoryEvent(t *testing.T, m dap.Message) *dap.MemoryEvent

CheckMemoryEvent fails the test if m is not *MemoryEvent.

func (*Client) CheckModuleEvent added in v1.7.0

func (c *Client) CheckModuleEvent(t *testing.T, m dap.Message) *dap.ModuleEvent

CheckModuleEvent fails the test if m is not *ModuleEvent.

func (*Client) CheckModulesResponse added in v1.7.0

func (c *Client) CheckModulesResponse(t *testing.T, m dap.Message) *dap.ModulesResponse

CheckModulesResponse fails the test if m is not *ModulesResponse.

func (*Client) CheckNextResponse added in v1.7.0

func (c *Client) CheckNextResponse(t *testing.T, m dap.Message) *dap.NextResponse

CheckNextResponse fails the test if m is not *NextResponse.

func (*Client) CheckOutputEvent added in v1.7.0

func (c *Client) CheckOutputEvent(t *testing.T, m dap.Message) *dap.OutputEvent

CheckOutputEvent fails the test if m is not *OutputEvent.

func (*Client) CheckPauseResponse added in v1.7.0

func (c *Client) CheckPauseResponse(t *testing.T, m dap.Message) *dap.PauseResponse

CheckPauseResponse fails the test if m is not *PauseResponse.

func (*Client) CheckProcessEvent added in v1.7.0

func (c *Client) CheckProcessEvent(t *testing.T, m dap.Message) *dap.ProcessEvent

CheckProcessEvent fails the test if m is not *ProcessEvent.

func (*Client) CheckProgressEndEvent added in v1.7.0

func (c *Client) CheckProgressEndEvent(t *testing.T, m dap.Message) *dap.ProgressEndEvent

CheckProgressEndEvent fails the test if m is not *ProgressEndEvent.

func (*Client) CheckProgressStartEvent added in v1.7.0

func (c *Client) CheckProgressStartEvent(t *testing.T, m dap.Message) *dap.ProgressStartEvent

CheckProgressStartEvent fails the test if m is not *ProgressStartEvent.

func (*Client) CheckProgressUpdateEvent added in v1.7.0

func (c *Client) CheckProgressUpdateEvent(t *testing.T, m dap.Message) *dap.ProgressUpdateEvent

CheckProgressUpdateEvent fails the test if m is not *ProgressUpdateEvent.

func (*Client) CheckReadMemoryResponse added in v1.7.0

func (c *Client) CheckReadMemoryResponse(t *testing.T, m dap.Message) *dap.ReadMemoryResponse

CheckReadMemoryResponse fails the test if m is not *ReadMemoryResponse.

func (*Client) CheckRestartFrameResponse added in v1.7.0

func (c *Client) CheckRestartFrameResponse(t *testing.T, m dap.Message) *dap.RestartFrameResponse

CheckRestartFrameResponse fails the test if m is not *RestartFrameResponse.

func (*Client) CheckRestartResponse added in v1.7.0

func (c *Client) CheckRestartResponse(t *testing.T, m dap.Message) *dap.RestartResponse

CheckRestartResponse fails the test if m is not *RestartResponse.

func (*Client) CheckReverseContinueResponse added in v1.7.0

func (c *Client) CheckReverseContinueResponse(t *testing.T, m dap.Message) *dap.ReverseContinueResponse

CheckReverseContinueResponse fails the test if m is not *ReverseContinueResponse.

func (*Client) CheckRunInTerminalResponse added in v1.7.0

func (c *Client) CheckRunInTerminalResponse(t *testing.T, m dap.Message) *dap.RunInTerminalResponse

CheckRunInTerminalResponse fails the test if m is not *RunInTerminalResponse.

func (*Client) CheckScopesResponse added in v1.7.0

func (c *Client) CheckScopesResponse(t *testing.T, m dap.Message) *dap.ScopesResponse

CheckScopesResponse fails the test if m is not *ScopesResponse.

func (*Client) CheckSetBreakpointsResponse added in v1.7.0

func (c *Client) CheckSetBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetBreakpointsResponse

CheckSetBreakpointsResponse fails the test if m is not *SetBreakpointsResponse.

func (*Client) CheckSetDataBreakpointsResponse added in v1.7.0

func (c *Client) CheckSetDataBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetDataBreakpointsResponse

CheckSetDataBreakpointsResponse fails the test if m is not *SetDataBreakpointsResponse.

func (*Client) CheckSetExceptionBreakpointsResponse added in v1.7.0

func (c *Client) CheckSetExceptionBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetExceptionBreakpointsResponse

CheckSetExceptionBreakpointsResponse fails the test if m is not *SetExceptionBreakpointsResponse.

func (*Client) CheckSetExpressionResponse added in v1.7.0

func (c *Client) CheckSetExpressionResponse(t *testing.T, m dap.Message) *dap.SetExpressionResponse

CheckSetExpressionResponse fails the test if m is not *SetExpressionResponse.

func (*Client) CheckSetFunctionBreakpointsResponse added in v1.7.0

func (c *Client) CheckSetFunctionBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetFunctionBreakpointsResponse

CheckSetFunctionBreakpointsResponse fails the test if m is not *SetFunctionBreakpointsResponse.

func (*Client) CheckSetInstructionBreakpointsResponse added in v1.7.0

func (c *Client) CheckSetInstructionBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetInstructionBreakpointsResponse

CheckSetInstructionBreakpointsResponse fails the test if m is not *SetInstructionBreakpointsResponse.

func (*Client) CheckSetVariableResponse added in v1.7.0

func (c *Client) CheckSetVariableResponse(t *testing.T, m dap.Message) *dap.SetVariableResponse

CheckSetVariableResponse fails the test if m is not *SetVariableResponse.

func (*Client) CheckSourceResponse added in v1.7.0

func (c *Client) CheckSourceResponse(t *testing.T, m dap.Message) *dap.SourceResponse

CheckSourceResponse fails the test if m is not *SourceResponse.

func (*Client) CheckStackTraceResponse added in v1.7.0

func (c *Client) CheckStackTraceResponse(t *testing.T, m dap.Message) *dap.StackTraceResponse

CheckStackTraceResponse fails the test if m is not *StackTraceResponse.

func (*Client) CheckStepBackResponse added in v1.7.0

func (c *Client) CheckStepBackResponse(t *testing.T, m dap.Message) *dap.StepBackResponse

CheckStepBackResponse fails the test if m is not *StepBackResponse.

func (*Client) CheckStepInResponse added in v1.7.0

func (c *Client) CheckStepInResponse(t *testing.T, m dap.Message) *dap.StepInResponse

CheckStepInResponse fails the test if m is not *StepInResponse.

func (*Client) CheckStepInTargetsResponse added in v1.7.0

func (c *Client) CheckStepInTargetsResponse(t *testing.T, m dap.Message) *dap.StepInTargetsResponse

CheckStepInTargetsResponse fails the test if m is not *StepInTargetsResponse.

func (*Client) CheckStepOutResponse added in v1.7.0

func (c *Client) CheckStepOutResponse(t *testing.T, m dap.Message) *dap.StepOutResponse

CheckStepOutResponse fails the test if m is not *StepOutResponse.

func (*Client) CheckStopLocation added in v1.7.3

func (c *Client) CheckStopLocation(t *testing.T, thread int, name string, line interface{})

func (*Client) CheckStoppedEvent added in v1.7.0

func (c *Client) CheckStoppedEvent(t *testing.T, m dap.Message) *dap.StoppedEvent

CheckStoppedEvent fails the test if m is not *StoppedEvent.

func (*Client) CheckTerminateResponse added in v1.7.0

func (c *Client) CheckTerminateResponse(t *testing.T, m dap.Message) *dap.TerminateResponse

CheckTerminateResponse fails the test if m is not *TerminateResponse.

func (*Client) CheckTerminateThreadsResponse added in v1.7.0

func (c *Client) CheckTerminateThreadsResponse(t *testing.T, m dap.Message) *dap.TerminateThreadsResponse

CheckTerminateThreadsResponse fails the test if m is not *TerminateThreadsResponse.

func (*Client) CheckTerminatedEvent added in v1.7.0

func (c *Client) CheckTerminatedEvent(t *testing.T, m dap.Message) *dap.TerminatedEvent

CheckTerminatedEvent fails the test if m is not *TerminatedEvent.

func (*Client) CheckThreadEvent added in v1.7.0

func (c *Client) CheckThreadEvent(t *testing.T, m dap.Message) *dap.ThreadEvent

CheckThreadEvent fails the test if m is not *ThreadEvent.

func (*Client) CheckThreadsResponse added in v1.7.0

func (c *Client) CheckThreadsResponse(t *testing.T, m dap.Message) *dap.ThreadsResponse

CheckThreadsResponse fails the test if m is not *ThreadsResponse.

func (*Client) CheckVariablesResponse added in v1.7.0

func (c *Client) CheckVariablesResponse(t *testing.T, m dap.Message) *dap.VariablesResponse

CheckVariablesResponse fails the test if m is not *VariablesResponse.

func (*Client) CheckWriteMemoryResponse added in v1.7.3

func (c *Client) CheckWriteMemoryResponse(t *testing.T, m dap.Message) *dap.WriteMemoryResponse

CheckWriteMemoryResponse fails the test if m is not *WriteMemoryResponse.

func (*Client) Close

func (c *Client) Close()

Close closes the client connection.

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

func (c *Client) ContinueRequest(thread int)

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 added in v1.6.0

func (c *Client) DisconnectRequestWithKillOption(kill bool)

DisconnectRequestWithKillOption sends a 'disconnect' request with an option to specify `terminateDebuggee`.

func (*Client) EvaluateRequest

func (c *Client) EvaluateRequest(expr string, fid int, context string)

EvaluateRequest sends a 'evaluate' request.

func (*Client) ExceptionInfoRequest

func (c *Client) ExceptionInfoRequest(threadID int)

ExceptionInfoRequest sends a 'exceptionInfo' request.

func (*Client) ExpectAttachResponse added in v1.6.0

func (c *Client) ExpectAttachResponse(t *testing.T) *dap.AttachResponse

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

func (c *Client) ExpectBreakpointEvent(t *testing.T) *dap.BreakpointEvent

ExpectBreakpointEvent reads a protocol message from the connection and fails the test if the read message is not *BreakpointEvent.

func (*Client) ExpectBreakpointLocationsResponse

func (c *Client) ExpectBreakpointLocationsResponse(t *testing.T) *dap.BreakpointLocationsResponse

ExpectBreakpointLocationsResponse reads a protocol message from the connection and fails the test if the read message is not *BreakpointLocationsResponse.

func (*Client) ExpectCancelResponse

func (c *Client) ExpectCancelResponse(t *testing.T) *dap.CancelResponse

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

func (c *Client) ExpectCapabilitiesEvent(t *testing.T) *dap.CapabilitiesEvent

ExpectCapabilitiesEvent reads a protocol message from the connection and fails the test if the read message is not *CapabilitiesEvent.

func (*Client) ExpectCapabilitiesEventSupportTerminateDebuggee added in v1.8.3

func (c *Client) ExpectCapabilitiesEventSupportTerminateDebuggee(t *testing.T) *dap.CapabilitiesEvent

func (*Client) ExpectCompletionsResponse

func (c *Client) ExpectCompletionsResponse(t *testing.T) *dap.CompletionsResponse

ExpectCompletionsResponse reads a protocol message from the connection and fails the test if the read message is not *CompletionsResponse.

func (*Client) ExpectConfigurationDoneResponse

func (c *Client) ExpectConfigurationDoneResponse(t *testing.T) *dap.ConfigurationDoneResponse

ExpectConfigurationDoneResponse reads a protocol message from the connection and fails the test if the read message is not *ConfigurationDoneResponse.

func (*Client) ExpectContinueResponse

func (c *Client) ExpectContinueResponse(t *testing.T) *dap.ContinueResponse

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

func (c *Client) ExpectContinuedEvent(t *testing.T) *dap.ContinuedEvent

ExpectContinuedEvent reads a protocol message from the connection and fails the test if the read message is not *ContinuedEvent.

func (*Client) ExpectDataBreakpointInfoResponse

func (c *Client) ExpectDataBreakpointInfoResponse(t *testing.T) *dap.DataBreakpointInfoResponse

ExpectDataBreakpointInfoResponse reads a protocol message from the connection and fails the test if the read message is not *DataBreakpointInfoResponse.

func (*Client) ExpectDisassembleResponse

func (c *Client) ExpectDisassembleResponse(t *testing.T) *dap.DisassembleResponse

ExpectDisassembleResponse reads a protocol message from the connection and fails the test if the read message is not *DisassembleResponse.

func (*Client) ExpectDisconnectResponse

func (c *Client) ExpectDisconnectResponse(t *testing.T) *dap.DisconnectResponse

ExpectDisconnectResponse reads a protocol message from the connection and fails the test if the read message is not *DisconnectResponse.

func (*Client) ExpectErrorResponse

func (c *Client) ExpectErrorResponse(t *testing.T) *dap.ErrorResponse

ExpectErrorResponse reads a protocol message from the connection and fails the test if the read message is not *ErrorResponse.

func (*Client) ExpectErrorResponseWith added in v1.7.3

func (c *Client) ExpectErrorResponseWith(t *testing.T, id int, message string, showUser bool) *dap.ErrorResponse

func (*Client) ExpectEvaluateResponse added in v1.5.1

func (c *Client) ExpectEvaluateResponse(t *testing.T) *dap.EvaluateResponse

ExpectEvaluateResponse reads a protocol message from the connection and fails the test if the read message is not *EvaluateResponse.

func (*Client) ExpectExceptionInfoResponse

func (c *Client) ExpectExceptionInfoResponse(t *testing.T) *dap.ExceptionInfoResponse

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

func (c *Client) ExpectExitedEvent(t *testing.T) *dap.ExitedEvent

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

func (c *Client) ExpectGotoResponse(t *testing.T) *dap.GotoResponse

ExpectGotoResponse reads a protocol message from the connection and fails the test if the read message is not *GotoResponse.

func (*Client) ExpectGotoTargetsResponse

func (c *Client) ExpectGotoTargetsResponse(t *testing.T) *dap.GotoTargetsResponse

ExpectGotoTargetsResponse reads a protocol message from the connection and fails the test if the read message is not *GotoTargetsResponse.

func (*Client) ExpectInitializeResponse

func (c *Client) ExpectInitializeResponse(t *testing.T) *dap.InitializeResponse

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 (c *Client) ExpectInitializeResponseAndCapabilities(t *testing.T) *dap.InitializeResponse

func (*Client) ExpectInitializedEvent

func (c *Client) ExpectInitializedEvent(t *testing.T) *dap.InitializedEvent

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

func (c *Client) ExpectInvalidatedEvent(t *testing.T) *dap.InvalidatedEvent

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 (c *Client) ExpectInvisibleErrorResponse(t *testing.T) *dap.ErrorResponse

func (*Client) ExpectLaunchResponse

func (c *Client) ExpectLaunchResponse(t *testing.T) *dap.LaunchResponse

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

func (c *Client) ExpectLoadedSourceEvent(t *testing.T) *dap.LoadedSourceEvent

ExpectLoadedSourceEvent reads a protocol message from the connection and fails the test if the read message is not *LoadedSourceEvent.

func (*Client) ExpectLoadedSourcesResponse

func (c *Client) ExpectLoadedSourcesResponse(t *testing.T) *dap.LoadedSourcesResponse

ExpectLoadedSourcesResponse reads a protocol message from the connection and fails the test if the read message is not *LoadedSourcesResponse.

func (*Client) ExpectMemoryEvent added in v1.7.3

func (c *Client) ExpectMemoryEvent(t *testing.T) *dap.MemoryEvent

ExpectMemoryEvent reads a protocol message from the connection and fails the test if the read message is not *MemoryEvent.

func (*Client) ExpectMessage added in v1.6.1

func (c *Client) ExpectMessage(t *testing.T) dap.Message

func (*Client) ExpectModuleEvent added in v1.6.1

func (c *Client) ExpectModuleEvent(t *testing.T) *dap.ModuleEvent

ExpectModuleEvent reads a protocol message from the connection and fails the test if the read message is not *ModuleEvent.

func (*Client) ExpectModulesResponse

func (c *Client) ExpectModulesResponse(t *testing.T) *dap.ModulesResponse

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

func (c *Client) ExpectNextResponse(t *testing.T) *dap.NextResponse

ExpectNextResponse reads a protocol message from the connection and fails the test if the read message is not *NextResponse.

func (*Client) ExpectNotYetImplementedErrorResponse

func (c *Client) ExpectNotYetImplementedErrorResponse(t *testing.T) *dap.ErrorResponse

func (*Client) ExpectOutputEvent added in v1.5.1

func (c *Client) ExpectOutputEvent(t *testing.T) *dap.OutputEvent

ExpectOutputEvent reads a protocol message from the connection and fails the test if the read message is not *OutputEvent.

func (*Client) ExpectOutputEventClosingClient added in v1.7.3

func (c *Client) ExpectOutputEventClosingClient(t *testing.T, status string) *dap.OutputEvent

func (*Client) ExpectOutputEventDetaching added in v1.6.1

func (c *Client) ExpectOutputEventDetaching(t *testing.T) *dap.OutputEvent

func (*Client) ExpectOutputEventDetachingKill added in v1.6.1

func (c *Client) ExpectOutputEventDetachingKill(t *testing.T) *dap.OutputEvent

func (*Client) ExpectOutputEventDetachingNoKill added in v1.6.1

func (c *Client) ExpectOutputEventDetachingNoKill(t *testing.T) *dap.OutputEvent

func (*Client) ExpectOutputEventProcessExited added in v1.6.1

func (c *Client) ExpectOutputEventProcessExited(t *testing.T, status int) *dap.OutputEvent

func (*Client) ExpectOutputEventProcessExitedAnyStatus added in v1.8.0

func (c *Client) ExpectOutputEventProcessExitedAnyStatus(t *testing.T) *dap.OutputEvent

func (*Client) ExpectOutputEventRegex added in v1.6.1

func (c *Client) ExpectOutputEventRegex(t *testing.T, want string) *dap.OutputEvent

func (*Client) ExpectOutputEventTerminating added in v1.7.1

func (c *Client) ExpectOutputEventTerminating(t *testing.T) *dap.OutputEvent

func (*Client) ExpectPauseResponse added in v1.6.1

func (c *Client) ExpectPauseResponse(t *testing.T) *dap.PauseResponse

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

func (c *Client) ExpectProcessEvent(t *testing.T) *dap.ProcessEvent

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

func (c *Client) ExpectProgressEndEvent(t *testing.T) *dap.ProgressEndEvent

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

func (c *Client) ExpectProgressStartEvent(t *testing.T) *dap.ProgressStartEvent

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

func (c *Client) ExpectProgressUpdateEvent(t *testing.T) *dap.ProgressUpdateEvent

ExpectProgressUpdateEvent reads a protocol message from the connection and fails the test if the read message is not *ProgressUpdateEvent.

func (*Client) ExpectReadMemoryResponse

func (c *Client) ExpectReadMemoryResponse(t *testing.T) *dap.ReadMemoryResponse

ExpectReadMemoryResponse reads a protocol message from the connection and fails the test if the read message is not *ReadMemoryResponse.

func (*Client) ExpectRestartFrameResponse

func (c *Client) ExpectRestartFrameResponse(t *testing.T) *dap.RestartFrameResponse

ExpectRestartFrameResponse reads a protocol message from the connection and fails the test if the read message is not *RestartFrameResponse.

func (*Client) ExpectRestartResponse

func (c *Client) ExpectRestartResponse(t *testing.T) *dap.RestartResponse

ExpectRestartResponse reads a protocol message from the connection and fails the test if the read message is not *RestartResponse.

func (*Client) ExpectReverseContinueResponse

func (c *Client) ExpectReverseContinueResponse(t *testing.T) *dap.ReverseContinueResponse

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

func (c *Client) ExpectRunInTerminalResponse(t *testing.T) *dap.RunInTerminalResponse

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

func (c *Client) ExpectScopesResponse(t *testing.T) *dap.ScopesResponse

ExpectScopesResponse reads a protocol message from the connection and fails the test if the read message is not *ScopesResponse.

func (*Client) ExpectSetBreakpointsResponse

func (c *Client) ExpectSetBreakpointsResponse(t *testing.T) *dap.SetBreakpointsResponse

ExpectSetBreakpointsResponse reads a protocol message from the connection and fails the test if the read message is not *SetBreakpointsResponse.

func (*Client) ExpectSetDataBreakpointsResponse

func (c *Client) ExpectSetDataBreakpointsResponse(t *testing.T) *dap.SetDataBreakpointsResponse

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

func (c *Client) ExpectSetExpressionResponse(t *testing.T) *dap.SetExpressionResponse

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

func (c *Client) ExpectSetVariableResponse(t *testing.T) *dap.SetVariableResponse

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

func (c *Client) ExpectSourceResponse(t *testing.T) *dap.SourceResponse

ExpectSourceResponse reads a protocol message from the connection and fails the test if the read message is not *SourceResponse.

func (*Client) ExpectStackTraceResponse

func (c *Client) ExpectStackTraceResponse(t *testing.T) *dap.StackTraceResponse

ExpectStackTraceResponse reads a protocol message from the connection and fails the test if the read message is not *StackTraceResponse.

func (*Client) ExpectStepBackResponse

func (c *Client) ExpectStepBackResponse(t *testing.T) *dap.StepBackResponse

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

func (c *Client) ExpectStepInResponse(t *testing.T) *dap.StepInResponse

ExpectStepInResponse reads a protocol message from the connection and fails the test if the read message is not *StepInResponse.

func (*Client) ExpectStepInTargetsResponse

func (c *Client) ExpectStepInTargetsResponse(t *testing.T) *dap.StepInTargetsResponse

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

func (c *Client) ExpectStepOutResponse(t *testing.T) *dap.StepOutResponse

ExpectStepOutResponse reads a protocol message from the connection and fails the test if the read message is not *StepOutResponse.

func (*Client) ExpectStoppedEvent

func (c *Client) ExpectStoppedEvent(t *testing.T) *dap.StoppedEvent

ExpectStoppedEvent reads a protocol message from the connection and fails the test if the read message is not *StoppedEvent.

func (*Client) ExpectTerminateResponse

func (c *Client) ExpectTerminateResponse(t *testing.T) *dap.TerminateResponse

ExpectTerminateResponse reads a protocol message from the connection and fails the test if the read message is not *TerminateResponse.

func (*Client) ExpectTerminateThreadsResponse

func (c *Client) ExpectTerminateThreadsResponse(t *testing.T) *dap.TerminateThreadsResponse

ExpectTerminateThreadsResponse reads a protocol message from the connection and fails the test if the read message is not *TerminateThreadsResponse.

func (*Client) ExpectTerminatedEvent

func (c *Client) ExpectTerminatedEvent(t *testing.T) *dap.TerminatedEvent

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

func (c *Client) ExpectThreadEvent(t *testing.T) *dap.ThreadEvent

ExpectThreadEvent reads a protocol message from the connection and fails the test if the read message is not *ThreadEvent.

func (*Client) ExpectThreadsResponse

func (c *Client) ExpectThreadsResponse(t *testing.T) *dap.ThreadsResponse

ExpectThreadsResponse reads a protocol message from the connection and fails the test if the read message is not *ThreadsResponse.

func (*Client) ExpectUnsupportedCommandErrorResponse

func (c *Client) ExpectUnsupportedCommandErrorResponse(t *testing.T) *dap.ErrorResponse

func (*Client) ExpectVariablesResponse added in v1.5.1

func (c *Client) ExpectVariablesResponse(t *testing.T) *dap.VariablesResponse

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 (c *Client) ExpectVisibleErrorResponse(t *testing.T) *dap.ErrorResponse

func (*Client) ExpectWriteMemoryResponse added in v1.7.3

func (c *Client) ExpectWriteMemoryResponse(t *testing.T) *dap.WriteMemoryResponse

ExpectWriteMemoryResponse reads a protocol message from the connection and fails the test if the read message is not *WriteMemoryResponse.

func (*Client) GotoRequest

func (c *Client) GotoRequest()

GotoRequest sends a 'goto' request.

func (*Client) GotoTargetsRequest

func (c *Client) GotoTargetsRequest()

GotoTargetsRequest sends a 'gotoTargets' request.

func (*Client) IndexedVariablesRequest added in v1.7.0

func (c *Client) IndexedVariablesRequest(variablesReference, start, count int)

IndexedVariablesRequest sends a 'variables' 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

func (c *Client) LaunchRequest(mode, program string, stopOnEntry bool)

LaunchRequest sends a 'launch' request with the specified args.

func (*Client) LaunchRequestWithArgs

func (c *Client) LaunchRequestWithArgs(arguments map[string]interface{})

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 added in v1.7.0

func (c *Client) NamedVariablesRequest(variablesReference int)

NamedVariablesRequest sends a 'variables' request.

func (*Client) NextInstructionRequest added in v1.7.3

func (c *Client) NextInstructionRequest(thread int)

NextInstructionRequest sends a 'next' request with granularity 'instruction'.

func (*Client) NextRequest

func (c *Client) NextRequest(thread int)

NextRequest sends a 'next' request.

func (*Client) PauseRequest

func (c *Client) PauseRequest(threadId int)

PauseRequest sends a 'pause' request.

func (*Client) ReadMemoryRequest

func (c *Client) ReadMemoryRequest()

ReadMemoryRequest sends a 'readMemory' request.

func (*Client) ReadMessage

func (c *Client) ReadMessage() (dap.Message, error)

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

func (c *Client) ScopesRequest(frameID int)

ScopesRequest sends a 'scopes' request.

func (*Client) SetBreakpointsRequest

func (c *Client) SetBreakpointsRequest(file string, lines []int)

SetBreakpointsRequest sends a 'setBreakpoints' request.

func (*Client) SetBreakpointsRequestWithArgs added in v1.7.3

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 added in v1.7.3

func (c *Client) SetInstructionBreakpointsRequest(breakpoints []dap.InstructionBreakpoint)

SetInstructionBreakpointsRequest sends a 'setInstructionBreakpoints' request.

func (*Client) SetVariableRequest

func (c *Client) SetVariableRequest(variablesRef int, name, value string)

SetVariableRequest sends a 'setVariable' request.

func (*Client) SourceRequest

func (c *Client) SourceRequest()

SourceRequest sends a 'source' request.

func (*Client) StackTraceRequest

func (c *Client) StackTraceRequest(threadID, startFrame, levels int)

StackTraceRequest sends a 'stackTrace' request.

func (*Client) StepBackRequest

func (c *Client) StepBackRequest()

StepBackRequest sends a 'stepBack' request.

func (*Client) StepInInstructionRequest added in v1.7.3

func (c *Client) StepInInstructionRequest(thread int)

StepInInstructionRequest sends a 'stepIn' request with granularity 'instruction'.

func (*Client) StepInRequest

func (c *Client) StepInRequest(thread int)

StepInRequest sends a 'stepIn' request.

func (*Client) StepInTargetsRequest

func (c *Client) StepInTargetsRequest()

StepInTargetsRequest sends a 'stepInTargets' request.

func (*Client) StepOutInstructionRequest added in v1.7.3

func (c *Client) StepOutInstructionRequest(thread int)

StepOutInstructionRequest sends a 'stepOut' request with granularity 'instruction'.

func (*Client) StepOutRequest

func (c *Client) StepOutRequest(thread int)

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

func (c *Client) VariablesRequest(variablesReference int)

VariablesRequest sends a 'variables' request.

Directories

Path Synopsis
Binary gen generates service/dap/daptest/responses.go.
Binary gen generates service/dap/daptest/responses.go.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL