dap

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAttachResponse

func NewAttachResponse() *godap.AttachResponse

func NewBreakpointLocationsResponse

func NewBreakpointLocationsResponse(breakpoints []godap.BreakpointLocation) *godap.BreakpointLocationsResponse

func NewConfigurationDoneResponse

func NewConfigurationDoneResponse() *godap.ConfigurationDoneResponse

func NewContinueResponse

func NewContinueResponse() *godap.ContinueResponse

func NewDisconnectResponse

func NewDisconnectResponse() *godap.DisconnectResponse

func NewEvaluateResponse

func NewEvaluateResponse(value string) *godap.EvaluateResponse

func NewInitializeResponse

func NewInitializeResponse(capabilities godap.Capabilities) *godap.InitializeResponse

func NewInitializedEvent

func NewInitializedEvent() *godap.InitializedEvent

func NewLaunchResponse

func NewLaunchResponse() *godap.LaunchResponse

func NewNextResponse

func NewNextResponse() *godap.NextResponse

func NewOutputEvent

func NewOutputEvent(category string, output string) *godap.OutputEvent

func NewScopesResponse

func NewScopesResponse(scopes []godap.Scope) *godap.ScopesResponse

func NewSetBreakpointsResponse

func NewSetBreakpointsResponse(breakpoints []godap.Breakpoint) *godap.SetBreakpointsResponse

func NewStackTraceResponse

func NewStackTraceResponse(stack []godap.StackFrame) *godap.StackTraceResponse

func NewStepInResponse

func NewStepInResponse() *godap.StepInResponse

func NewStepOutResponse

func NewStepOutResponse() *godap.StepOutResponse

func NewStoppedBreakpointEvent

func NewStoppedBreakpointEvent(threadID debug.ThreadID, bp *godap.Breakpoint) *godap.StoppedEvent

func NewStoppedEntryEvent

func NewStoppedEntryEvent(threadID debug.ThreadID) *godap.StoppedEvent

func NewStoppedEvent

func NewStoppedEvent(reason string, threadID debug.ThreadID, bps []int, description string,
	text string,
) *godap.StoppedEvent

func NewStoppedExceptionEvent

func NewStoppedExceptionEvent(threadID debug.ThreadID, text string) *godap.StoppedEvent

func NewStoppedResultEvent

func NewStoppedResultEvent(threadID debug.ThreadID) *godap.StoppedEvent

func NewTerminateResponse

func NewTerminateResponse() *godap.TerminateResponse

func NewTerminatedEvent

func NewTerminatedEvent() *godap.TerminatedEvent

func NewThreadEvent

func NewThreadEvent(threadID debug.ThreadID, reason string) *godap.ThreadEvent

func NewThreadsResponse

func NewThreadsResponse(threads []godap.Thread) *godap.ThreadsResponse

func NewVariablesResponse

func NewVariablesResponse(variables []godap.Variable) *godap.VariablesResponse

Types

type DebugLogger

type DebugLogger struct {
	Local           logging.Logger
	ProtocolManager *ProtocolManager
	// contains filtered or unexported fields
}

func NewDebugLogger

func NewDebugLogger(localLogger logging.Logger, level logging.Level) *DebugLogger

func (*DebugLogger) Debug

func (l *DebugLogger) Debug(fmt string, a ...interface{})

func (*DebugLogger) Error

func (l *DebugLogger) Error(fmt string, a ...interface{})

func (*DebugLogger) GetLevel

func (l *DebugLogger) GetLevel() logging.Level

func (*DebugLogger) Info

func (l *DebugLogger) Info(fmt string, a ...interface{})

func (*DebugLogger) SetLevel

func (l *DebugLogger) SetLevel(level logging.Level)

func (*DebugLogger) SetLevelFromString

func (l *DebugLogger) SetLevelFromString(level string)

func (*DebugLogger) SetRemoteEnabled

func (l *DebugLogger) SetRemoteEnabled(enabled bool)

func (*DebugLogger) Warn

func (l *DebugLogger) Warn(fmt string, a ...interface{})

func (*DebugLogger) WithFields

func (l *DebugLogger) WithFields(map[string]interface{}) logging.Logger

type MessageHandler

type MessageHandler func(ctx context.Context, request godap.Message) (bool, godap.ResponseMessage, error)

type ProtocolManager

type ProtocolManager struct {
	// contains filtered or unexported fields
}

func NewProtocolManager

func NewProtocolManager(logger logging.Logger) *ProtocolManager

func (*ProtocolManager) Close

func (pm *ProtocolManager) Close()

func (*ProtocolManager) SendEvent

func (pm *ProtocolManager) SendEvent(e godap.EventMessage)

func (*ProtocolManager) SendResponse

func (pm *ProtocolManager) SendResponse(resp godap.ResponseMessage, req godap.Message, err error)

func (*ProtocolManager) Start

func (pm *ProtocolManager) Start(ctx context.Context, conn io.ReadWriteCloser, handle MessageHandler) error

Jump to

Keyboard shortcuts

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