Documentation
¶
Index ¶
- func NewAttachResponse() *godap.AttachResponse
- func NewBreakpointLocationsResponse(breakpoints []godap.BreakpointLocation) *godap.BreakpointLocationsResponse
- func NewConfigurationDoneResponse() *godap.ConfigurationDoneResponse
- func NewContinueResponse() *godap.ContinueResponse
- func NewDisconnectResponse() *godap.DisconnectResponse
- func NewEvaluateResponse(value string) *godap.EvaluateResponse
- func NewInitializeResponse(capabilities godap.Capabilities) *godap.InitializeResponse
- func NewInitializedEvent() *godap.InitializedEvent
- func NewLaunchResponse() *godap.LaunchResponse
- func NewNextResponse() *godap.NextResponse
- func NewOutputEvent(category string, output string) *godap.OutputEvent
- func NewScopesResponse(scopes []godap.Scope) *godap.ScopesResponse
- func NewSetBreakpointsResponse(breakpoints []godap.Breakpoint) *godap.SetBreakpointsResponse
- func NewStackTraceResponse(stack []godap.StackFrame) *godap.StackTraceResponse
- func NewStepInResponse() *godap.StepInResponse
- func NewStepOutResponse() *godap.StepOutResponse
- func NewStoppedBreakpointEvent(threadID debug.ThreadID, bp *godap.Breakpoint) *godap.StoppedEvent
- func NewStoppedEntryEvent(threadID debug.ThreadID) *godap.StoppedEvent
- func NewStoppedEvent(reason string, threadID debug.ThreadID, bps []int, description string, ...) *godap.StoppedEvent
- func NewStoppedExceptionEvent(threadID debug.ThreadID, text string) *godap.StoppedEvent
- func NewStoppedResultEvent(threadID debug.ThreadID) *godap.StoppedEvent
- func NewTerminateResponse() *godap.TerminateResponse
- func NewTerminatedEvent() *godap.TerminatedEvent
- func NewThreadEvent(threadID debug.ThreadID, reason string) *godap.ThreadEvent
- func NewThreadsResponse(threads []godap.Thread) *godap.ThreadsResponse
- func NewVariablesResponse(variables []godap.Variable) *godap.VariablesResponse
- type DebugLogger
- func (l *DebugLogger) Debug(fmt string, a ...interface{})
- func (l *DebugLogger) Error(fmt string, a ...interface{})
- func (l *DebugLogger) GetLevel() logging.Level
- func (l *DebugLogger) Info(fmt string, a ...interface{})
- func (l *DebugLogger) SetLevel(level logging.Level)
- func (l *DebugLogger) SetLevelFromString(level string)
- func (l *DebugLogger) SetRemoteEnabled(enabled bool)
- func (l *DebugLogger) Warn(fmt string, a ...interface{})
- func (l *DebugLogger) WithFields(map[string]interface{}) logging.Logger
- type MessageHandler
- type ProtocolManager
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 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 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
Click to show internal directories.
Click to hide internal directories.