daptest

package
v1.4.1-0...-9011182 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

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

Index

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

func NewClient(addr string) *Client

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

func (*Client) Close

func (c *Client) Close()

Close closes the client connection.

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) DisconnectRequest

func (c *Client) DisconnectRequest()

DisconnectRequest sends a 'disconnect' request.

func (*Client) ExpectConfigurationDoneResponse

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

func (*Client) ExpectContinueResponse

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

func (*Client) ExpectDisconnectResponse

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

func (*Client) ExpectErrorResponse

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

func (*Client) ExpectInitializeResponse

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

func (*Client) ExpectInitializedEvent

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

func (*Client) ExpectLaunchResponse

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

func (*Client) ExpectSetBreakpointsResponse

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

func (*Client) ExpectSetExceptionBreakpointsResponse

func (c *Client) ExpectSetExceptionBreakpointsResponse(t *testing.T) *dap.SetExceptionBreakpointsResponse

func (*Client) ExpectStackTraceResponse

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

func (*Client) ExpectStoppedEvent

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

func (*Client) ExpectTerminatedEvent

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

func (*Client) ExpectThreadsResponse

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

func (*Client) InitializeRequest

func (c *Client) InitializeRequest()

InitializeRequest sends an 'initialize' request.

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 string, 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) ReadMessage

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

func (*Client) SetBreakpointsRequest

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

SetBreakpointsRequest sends a 'setBreakpoints' request.

func (*Client) SetExceptionBreakpointsRequest

func (c *Client) SetExceptionBreakpointsRequest()

SetExceptionBreakpointsRequest sends a 'setExceptionBreakpoints' request.

func (*Client) StackTraceRequest

func (c *Client) StackTraceRequest()

StackTraceRequest sends a 'stackTrace' 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.

Jump to

Keyboard shortcuts

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