Documentation
¶
Index ¶
- Variables
- type AttachRequestArguments
- type AttachResponseBody
- type Boolean
- type Breakpoint
- type BreakpointEventBody
- type BreakpointLocation
- type BreakpointLocationsArguments
- type BreakpointLocationsResponseBody
- type CancelArguments
- type CancelResponseBody
- type Capabilities
- type CapabilitiesEventBody
- type Checksum
- type ChecksumAlgorithm
- type ColumnDescriptor
- type ColumnDescriptorType
- type CompletionItem
- type CompletionItemType
- type CompletionsArguments
- type CompletionsResponseBody
- type ConfigurationDoneArguments
- type ConfigurationDoneResponseBody
- type ContinueArguments
- type ContinueResponseBody
- type ContinuedEventBody
- type DataBreakpoint
- type DataBreakpointAccessType
- type DataBreakpointInfoArguments
- type DataBreakpointInfoResponseBody
- type Decoder
- type DisassembleArguments
- type DisassembleResponseBody
- type DisassembledInstruction
- type DisconnectArguments
- type DisconnectResponseBody
- type Encoder
- type ErrorResponseBody
- type EvaluateArguments
- type EvaluateResponseBody
- type Event
- type EventBody
- type ExceptionBreakMode
- type ExceptionBreakpointsFilter
- type ExceptionDetails
- type ExceptionFilterOptions
- type ExceptionInfoArguments
- type ExceptionInfoResponseBody
- type ExceptionOptions
- type ExceptionPathSegment
- type ExitedEventBody
- type FunctionBreakpoint
- type GotoArguments
- type GotoResponseBody
- type GotoTarget
- type GotoTargetsArguments
- type GotoTargetsResponseBody
- type Handler
- type IProtocolMessage
- type InitializeRequestArguments
- type InitializedEventBody
- type InstructionBreakpoint
- type Integer
- type InvalidatedEventBody
- type LaunchRequestArguments
- type LaunchResponseBody
- type LoadedSourceEventBody
- type LoadedSourceEventBodyReason
- type LoadedSourcesArguments
- type LoadedSourcesResponseBody
- type Message
- type Module
- type ModuleEventBody
- type ModuleEventBodyReason
- type ModulesArguments
- type ModulesResponseBody
- type ModulesViewDescriptor
- type NextArguments
- type NextResponseBody
- type Number
- type OutputEventBody
- type OutputEventBodyGroup
- type PauseArguments
- type PauseResponseBody
- type ProcessEventBody
- type ProcessEventBodyStartMethod
- type ProgressEndEventBody
- type ProgressStartEventBody
- type ProgressUpdateEventBody
- type ProtocolMessage
- type ProtocolMessageType
- type ReadMemoryArguments
- type ReadMemoryResponseBody
- type Request
- type RequestArguments
- type Response
- type ResponseBody
- type RestartArguments
- type RestartFrameArguments
- type RestartFrameResponseBody
- type RestartResponseBody
- type ReverseContinueArguments
- type ReverseContinueResponseBody
- type RunInTerminalRequestArguments
- type RunInTerminalRequestArgumentsKind
- type RunInTerminalResponseBody
- type Scope
- type ScopesArguments
- type ScopesResponseBody
- type Server
- type Session
- type SetBreakpointsArguments
- type SetBreakpointsResponseBody
- type SetDataBreakpointsArguments
- type SetDataBreakpointsResponseBody
- type SetExceptionBreakpointsArguments
- type SetExceptionBreakpointsResponseBody
- type SetExpressionArguments
- type SetExpressionResponseBody
- type SetFunctionBreakpointsArguments
- type SetFunctionBreakpointsResponseBody
- type SetInstructionBreakpointsArguments
- type SetInstructionBreakpointsResponseBody
- type SetVariableArguments
- type SetVariableResponseBody
- type Source
- type SourceArguments
- type SourceBreakpoint
- type SourcePresentationHint
- type SourceResponseBody
- type StackFrame
- type StackFrameFormat
- type StackFramePresentationHint
- type StackTraceArguments
- type StackTraceResponseBody
- type StepBackArguments
- type StepBackResponseBody
- type StepInArguments
- type StepInResponseBody
- type StepInTarget
- type StepInTargetsArguments
- type StepInTargetsResponseBody
- type StepOutArguments
- type StepOutResponseBody
- type SteppingGranularity
- type StoppedEventBody
- type String
- type TerminateArguments
- type TerminateResponseBody
- type TerminateThreadsArguments
- type TerminateThreadsResponseBody
- type TerminatedEventBody
- type Thread
- type ThreadEventBody
- type ThreadsArguments
- type ThreadsResponseBody
- type ValueFormat
- type Variable
- type VariablePresentationHint
- type VariablesArguments
- type VariablesArgumentsFilter
- type VariablesResponseBody
- type WriteMemoryArguments
- type WriteMemoryResponseBody
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidContentLength = errors.New("invalid content length")
ErrInvalidContentLength is the error returned by Decoder.Decode if the Content-Length header has an invalid value.
var ErrMissingContentLength = errors.New("missing content length")
ErrMissingContentLength is the error returned by Decoder.Decode if the Content-Length header is missing.
var ErrStop = errors.New("stop")
ErrStop is the error returned by a handler to indicate that the session should terminate.
Functions ¶
This section is empty.
Types ¶
type AttachRequestArguments ¶
type AttachRequestArguments struct {
Restart interface{} `json:"__restart,omitempty"`
}
type AttachResponseBody ¶
type AttachResponseBody struct{}
type Breakpoint ¶
type Breakpoint struct { Column *Integer `json:"column,omitempty"` EndColumn *Integer `json:"endColumn,omitempty"` EndLine *Integer `json:"endLine,omitempty"` Id *Integer `json:"id,omitempty"` InstructionReference *String `json:"instructionReference,omitempty"` Line *Integer `json:"line,omitempty"` Message *String `json:"message,omitempty"` Offset *Integer `json:"offset,omitempty"` Source *Source `json:"source,omitempty"` Verified bool `json:"verified"` }
type BreakpointEventBody ¶
type BreakpointEventBody struct { Breakpoint Breakpoint `json:"breakpoint"` Reason string `json:"reason"` }
type BreakpointLocation ¶
type BreakpointLocationsResponseBody ¶
type BreakpointLocationsResponseBody struct {
Breakpoints []*BreakpointLocation `json:"breakpoints"`
}
type CancelArguments ¶
type CancelResponseBody ¶
type CancelResponseBody struct{}
type Capabilities ¶
type Capabilities struct { AdditionalModuleColumns []*ColumnDescriptor `json:"additionalModuleColumns,omitempty"` CompletionTriggerCharacters []string `json:"completionTriggerCharacters,omitempty"` ExceptionBreakpointFilters []*ExceptionBreakpointsFilter `json:"exceptionBreakpointFilters,omitempty"` SupportSuspendDebuggee *Boolean `json:"supportSuspendDebuggee,omitempty"` SupportTerminateDebuggee *Boolean `json:"supportTerminateDebuggee,omitempty"` SupportedChecksumAlgorithms []ChecksumAlgorithm `json:"supportedChecksumAlgorithms,omitempty"` SupportsBreakpointLocationsRequest *Boolean `json:"supportsBreakpointLocationsRequest,omitempty"` SupportsCancelRequest *Boolean `json:"supportsCancelRequest,omitempty"` SupportsClipboardContext *Boolean `json:"supportsClipboardContext,omitempty"` SupportsCompletionsRequest *Boolean `json:"supportsCompletionsRequest,omitempty"` SupportsConditionalBreakpoints *Boolean `json:"supportsConditionalBreakpoints,omitempty"` SupportsConfigurationDoneRequest *Boolean `json:"supportsConfigurationDoneRequest,omitempty"` SupportsDataBreakpoints *Boolean `json:"supportsDataBreakpoints,omitempty"` SupportsDelayedStackTraceLoading *Boolean `json:"supportsDelayedStackTraceLoading,omitempty"` SupportsDisassembleRequest *Boolean `json:"supportsDisassembleRequest,omitempty"` SupportsEvaluateForHovers *Boolean `json:"supportsEvaluateForHovers,omitempty"` SupportsExceptionFilterOptions *Boolean `json:"supportsExceptionFilterOptions,omitempty"` SupportsExceptionInfoRequest *Boolean `json:"supportsExceptionInfoRequest,omitempty"` SupportsExceptionOptions *Boolean `json:"supportsExceptionOptions,omitempty"` SupportsFunctionBreakpoints *Boolean `json:"supportsFunctionBreakpoints,omitempty"` SupportsGotoTargetsRequest *Boolean `json:"supportsGotoTargetsRequest,omitempty"` SupportsHitConditionalBreakpoints *Boolean `json:"supportsHitConditionalBreakpoints,omitempty"` SupportsInstructionBreakpoints *Boolean `json:"supportsInstructionBreakpoints,omitempty"` SupportsLoadedSourcesRequest *Boolean `json:"supportsLoadedSourcesRequest,omitempty"` SupportsLogPoints *Boolean `json:"supportsLogPoints,omitempty"` SupportsModulesRequest *Boolean `json:"supportsModulesRequest,omitempty"` SupportsReadMemoryRequest *Boolean `json:"supportsReadMemoryRequest,omitempty"` SupportsRestartFrame *Boolean `json:"supportsRestartFrame,omitempty"` SupportsRestartRequest *Boolean `json:"supportsRestartRequest,omitempty"` SupportsSetExpression *Boolean `json:"supportsSetExpression,omitempty"` SupportsSetVariable *Boolean `json:"supportsSetVariable,omitempty"` SupportsStepBack *Boolean `json:"supportsStepBack,omitempty"` SupportsStepInTargetsRequest *Boolean `json:"supportsStepInTargetsRequest,omitempty"` SupportsSteppingGranularity *Boolean `json:"supportsSteppingGranularity,omitempty"` SupportsTerminateRequest *Boolean `json:"supportsTerminateRequest,omitempty"` SupportsTerminateThreadsRequest *Boolean `json:"supportsTerminateThreadsRequest,omitempty"` SupportsValueFormattingOptions *Boolean `json:"supportsValueFormattingOptions,omitempty"` SupportsWriteMemoryRequest *Boolean `json:"supportsWriteMemoryRequest,omitempty"` }
type CapabilitiesEventBody ¶
type CapabilitiesEventBody struct {
Capabilities Capabilities `json:"capabilities"`
}
type Checksum ¶
type Checksum struct { Algorithm ChecksumAlgorithm `json:"algorithm"` Checksum string `json:"checksum"` }
type ChecksumAlgorithm ¶
type ChecksumAlgorithm string
const ( ChecksumAlgorithm_MD5 ChecksumAlgorithm = "MD5" ChecksumAlgorithm_SHA1 ChecksumAlgorithm = "SHA1" ChecksumAlgorithm_SHA256 ChecksumAlgorithm = "SHA256" ChecksumAlgorithm_Timestamp ChecksumAlgorithm = "timestamp" )
type ColumnDescriptor ¶
type ColumnDescriptorType ¶
type ColumnDescriptorType string
const ( ColumnDescriptorType_String ColumnDescriptorType = "string" ColumnDescriptorType_Number ColumnDescriptorType = "number" ColumnDescriptorType_Boolean ColumnDescriptorType = "boolean" ColumnDescriptorType_UnixTimestampUTC ColumnDescriptorType = "unixTimestampUTC" )
type CompletionItem ¶
type CompletionItem struct { Label string `json:"label"` Length *Integer `json:"length,omitempty"` SelectionLength *Integer `json:"selectionLength,omitempty"` SelectionStart *Integer `json:"selectionStart,omitempty"` SortText *String `json:"sortText,omitempty"` Start *Integer `json:"start,omitempty"` Text *String `json:"text,omitempty"` Type *String `json:"type,omitempty"` }
type CompletionItemType ¶
type CompletionItemType string
const ( CompletionItemType_Method CompletionItemType = "method" CompletionItemType_Function CompletionItemType = "function" CompletionItemType_Constructor CompletionItemType = "constructor" CompletionItemType_Field CompletionItemType = "field" CompletionItemType_Variable CompletionItemType = "variable" CompletionItemType_Class CompletionItemType = "class" CompletionItemType_Interface CompletionItemType = "interface" CompletionItemType_Module CompletionItemType = "module" CompletionItemType_Property CompletionItemType = "property" CompletionItemType_Unit CompletionItemType = "unit" CompletionItemType_Value CompletionItemType = "value" CompletionItemType_Enum CompletionItemType = "enum" CompletionItemType_Keyword CompletionItemType = "keyword" CompletionItemType_Snippet CompletionItemType = "snippet" CompletionItemType_Text CompletionItemType = "text" CompletionItemType_Color CompletionItemType = "color" CompletionItemType_File CompletionItemType = "file" CompletionItemType_Reference CompletionItemType = "reference" CompletionItemType_Customcolor CompletionItemType = "customcolor" )
type CompletionsArguments ¶
type CompletionsResponseBody ¶
type CompletionsResponseBody struct {
Targets []*CompletionItem `json:"targets"`
}
type ConfigurationDoneArguments ¶
type ConfigurationDoneArguments struct{}
type ConfigurationDoneResponseBody ¶
type ConfigurationDoneResponseBody struct{}
type ContinueArguments ¶
type ContinueArguments struct {
ThreadId int `json:"threadId"`
}
type ContinueResponseBody ¶
type ContinueResponseBody struct {
AllThreadsContinued *Boolean `json:"allThreadsContinued,omitempty"`
}
type ContinuedEventBody ¶
type DataBreakpoint ¶
type DataBreakpointAccessType ¶
type DataBreakpointAccessType string
const ( DataBreakpointAccessType_Read DataBreakpointAccessType = "read" DataBreakpointAccessType_Write DataBreakpointAccessType = "write" DataBreakpointAccessType_ReadWrite DataBreakpointAccessType = "readWrite" )
type DataBreakpointInfoResponseBody ¶
type DataBreakpointInfoResponseBody struct { AccessTypes []DataBreakpointAccessType `json:"accessTypes,omitempty"` CanPersist *Boolean `json:"canPersist,omitempty"` DataId interface{} `json:"dataId"` Description string `json:"description"` }
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder unmarshalls DAP messages.
func NewDecoder ¶
NewDecoder returns a new decoder that uses the given reader.
func (*Decoder) Decode ¶
func (c *Decoder) Decode() (IProtocolMessage, error)
Decode unmarshalls a DAP message. Decode guarantees that the arguments/body of a successfully decoded request, response, or event will match the command/event field.
Decode returns ErrInvalidContentLength if the Content-Length header has an invalid value. Decode returns ErrMissingContentLength if the Content-Length header is missing.
type DisassembleArguments ¶
type DisassembleResponseBody ¶
type DisassembleResponseBody struct {
Instructions []*DisassembledInstruction `json:"instructions"`
}
type DisassembledInstruction ¶
type DisassembledInstruction struct { Address string `json:"address"` Column *Integer `json:"column,omitempty"` EndColumn *Integer `json:"endColumn,omitempty"` EndLine *Integer `json:"endLine,omitempty"` Instruction string `json:"instruction"` InstructionBytes *String `json:"instructionBytes,omitempty"` Line *Integer `json:"line,omitempty"` Location *Source `json:"location,omitempty"` Symbol *String `json:"symbol,omitempty"` }
type DisconnectArguments ¶
type DisconnectResponseBody ¶
type DisconnectResponseBody struct{}
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder marshalls DAP messages.
func NewEncoder ¶
NewEncoder returns a new encoder that uses the given writer.
func (*Encoder) Encode ¶
func (c *Encoder) Encode(msg IProtocolMessage) error
Encode marshalls a DAP message.
Encode will fail if seq has not been set. Encode will fail if the arguments/body of a request, response, or event does not match its command/event field.
type ErrorResponseBody ¶
type ErrorResponseBody struct {
Error *Message `json:"error,omitempty"`
}
type EvaluateArguments ¶
type EvaluateArguments struct { Context *String `json:"context,omitempty"` Expression string `json:"expression"` Format *ValueFormat `json:"format,omitempty"` FrameId *Integer `json:"frameId,omitempty"` }
type EvaluateResponseBody ¶
type EvaluateResponseBody struct { IndexedVariables *Integer `json:"indexedVariables,omitempty"` MemoryReference *String `json:"memoryReference,omitempty"` NamedVariables *Integer `json:"namedVariables,omitempty"` PresentationHint *VariablePresentationHint `json:"presentationHint,omitempty"` Result string `json:"result"` Type *String `json:"type,omitempty"` VariablesReference int `json:"variablesReference"` }
type Event ¶
type Event struct { ProtocolMessage Event string `json:"event"` Body EventBody `json:"body,omitempty"` }
func (*Event) MarshalJSON ¶
MarshalJSON marshalls the event to JSON.
func (*Event) UnmarshalJSON ¶
UnmarshalJSON unmarshalls the event from JSON.
type ExceptionBreakMode ¶
type ExceptionBreakMode string
const ( ExceptionBreakMode_Never ExceptionBreakMode = "never" ExceptionBreakMode_Always ExceptionBreakMode = "always" ExceptionBreakMode_Unhandled ExceptionBreakMode = "unhandled" ExceptionBreakMode_UserUnhandled ExceptionBreakMode = "userUnhandled" )
type ExceptionBreakpointsFilter ¶
type ExceptionBreakpointsFilter struct { ConditionDescription *String `json:"conditionDescription,omitempty"` Default *Boolean `json:"default,omitempty"` Description *String `json:"description,omitempty"` Filter string `json:"filter"` Label string `json:"label"` SupportsCondition *Boolean `json:"supportsCondition,omitempty"` }
type ExceptionDetails ¶
type ExceptionDetails struct { EvaluateName *String `json:"evaluateName,omitempty"` FullTypeName *String `json:"fullTypeName,omitempty"` InnerException []*ExceptionDetails `json:"innerException,omitempty"` Message *String `json:"message,omitempty"` StackTrace *String `json:"stackTrace,omitempty"` TypeName *String `json:"typeName,omitempty"` }
type ExceptionFilterOptions ¶
type ExceptionInfoArguments ¶
type ExceptionInfoArguments struct {
ThreadId int `json:"threadId"`
}
type ExceptionInfoResponseBody ¶
type ExceptionInfoResponseBody struct { BreakMode ExceptionBreakMode `json:"breakMode"` Description *String `json:"description,omitempty"` Details *ExceptionDetails `json:"details,omitempty"` ExceptionId string `json:"exceptionId"` }
type ExceptionOptions ¶
type ExceptionOptions struct { BreakMode ExceptionBreakMode `json:"breakMode"` Path []*ExceptionPathSegment `json:"path,omitempty"` }
type ExceptionPathSegment ¶
type ExitedEventBody ¶
type ExitedEventBody struct {
ExitCode int `json:"exitCode"`
}
type FunctionBreakpoint ¶
type GotoArguments ¶
type GotoResponseBody ¶
type GotoResponseBody struct{}
type GotoTarget ¶
type GotoTarget struct { Column *Integer `json:"column,omitempty"` EndColumn *Integer `json:"endColumn,omitempty"` EndLine *Integer `json:"endLine,omitempty"` Id int `json:"id"` InstructionPointerReference *String `json:"instructionPointerReference,omitempty"` Label string `json:"label"` Line int `json:"line"` }
type GotoTargetsArguments ¶
type GotoTargetsResponseBody ¶
type GotoTargetsResponseBody struct {
Targets []*GotoTarget `json:"targets"`
}
type Handler ¶
type Handler interface { // Initialize Called when the DAP session begins. Initialize(*Session, *InitializeRequestArguments) (*Capabilities, error) // Process Called for each received DAP message. Returning an error will terminate the session. Process(IProtocolMessage) error // Terminate Called when the DAP session ends. Terminate() }
Handler handles DAP events.
type IProtocolMessage ¶
type IProtocolMessage interface {
// contains filtered or unexported methods
}
IProtocolMessage is a DAP protocol message.
type InitializeRequestArguments ¶
type InitializeRequestArguments struct { AdapterID string `json:"adapterID"` ClientID *String `json:"clientID,omitempty"` ClientName *String `json:"clientName,omitempty"` ColumnsStartAt1 *Boolean `json:"columnsStartAt1,omitempty"` LinesStartAt1 *Boolean `json:"linesStartAt1,omitempty"` Locale *String `json:"locale,omitempty"` PathFormat *String `json:"pathFormat,omitempty"` SupportsInvalidatedEvent *Boolean `json:"supportsInvalidatedEvent,omitempty"` SupportsMemoryReferences *Boolean `json:"supportsMemoryReferences,omitempty"` SupportsProgressReporting *Boolean `json:"supportsProgressReporting,omitempty"` SupportsRunInTerminalRequest *Boolean `json:"supportsRunInTerminalRequest,omitempty"` SupportsVariablePaging *Boolean `json:"supportsVariablePaging,omitempty"` SupportsVariableType *Boolean `json:"supportsVariableType,omitempty"` }
type InitializedEventBody ¶
type InitializedEventBody struct{}
type InstructionBreakpoint ¶
type InvalidatedEventBody ¶
type LaunchRequestArguments ¶
type LaunchRequestArguments struct { NoDebug *Boolean `json:"noDebug,omitempty"` Restart interface{} `json:"__restart,omitempty"` }
type LaunchResponseBody ¶
type LaunchResponseBody struct{}
type LoadedSourceEventBody ¶
type LoadedSourceEventBody struct { Reason LoadedSourceEventBodyReason `json:"reason"` Source Source `json:"source"` }
type LoadedSourceEventBodyReason ¶
type LoadedSourceEventBodyReason string
const ( LoadedSourceEventBodyReason_New LoadedSourceEventBodyReason = "new" LoadedSourceEventBodyReason_Changed LoadedSourceEventBodyReason = "changed" LoadedSourceEventBodyReason_Removed LoadedSourceEventBodyReason = "removed" )
type LoadedSourcesArguments ¶
type LoadedSourcesArguments struct{}
type LoadedSourcesResponseBody ¶
type LoadedSourcesResponseBody struct {
Sources []*Source `json:"sources"`
}
type Message ¶
type Message struct { Format string `json:"format"` Id int `json:"id"` SendTelemetry *Boolean `json:"sendTelemetry,omitempty"` ShowUser *Boolean `json:"showUser,omitempty"` Url *String `json:"url,omitempty"` UrlLabel *String `json:"urlLabel,omitempty"` Variables map[string]string `json:"variables,omitempty"` }
type Module ¶
type Module struct { AddressRange *String `json:"addressRange,omitempty"` DateTimeStamp *String `json:"dateTimeStamp,omitempty"` Id interface{} `json:"id"` IsOptimized *Boolean `json:"isOptimized,omitempty"` IsUserCode *Boolean `json:"isUserCode,omitempty"` Name string `json:"name"` Path *String `json:"path,omitempty"` SymbolFilePath *String `json:"symbolFilePath,omitempty"` SymbolStatus *String `json:"symbolStatus,omitempty"` Version *String `json:"version,omitempty"` }
type ModuleEventBody ¶
type ModuleEventBody struct { Module Module `json:"module"` Reason ModuleEventBodyReason `json:"reason"` }
type ModuleEventBodyReason ¶
type ModuleEventBodyReason string
const ( ModuleEventBodyReason_New ModuleEventBodyReason = "new" ModuleEventBodyReason_Changed ModuleEventBodyReason = "changed" ModuleEventBodyReason_Removed ModuleEventBodyReason = "removed" )
type ModulesArguments ¶
type ModulesResponseBody ¶
type ModulesViewDescriptor ¶
type ModulesViewDescriptor struct {
Columns []*ColumnDescriptor `json:"columns"`
}
type NextArguments ¶
type NextResponseBody ¶
type NextResponseBody struct{}
type OutputEventBody ¶
type OutputEventBody struct { Category *String `json:"category,omitempty"` Column *Integer `json:"column,omitempty"` Data interface{} `json:"data,omitempty"` Group *String `json:"group,omitempty"` Line *Integer `json:"line,omitempty"` Output string `json:"output"` Source *Source `json:"source,omitempty"` VariablesReference *Integer `json:"variablesReference,omitempty"` }
type OutputEventBodyGroup ¶
type OutputEventBodyGroup string
const ( OutputEventBodyGroup_Start OutputEventBodyGroup = "start" OutputEventBodyGroup_StartCollapsed OutputEventBodyGroup = "startCollapsed" OutputEventBodyGroup_End OutputEventBodyGroup = "end" )
type PauseArguments ¶
type PauseArguments struct {
ThreadId int `json:"threadId"`
}
type PauseResponseBody ¶
type PauseResponseBody struct{}
type ProcessEventBody ¶
type ProcessEventBodyStartMethod ¶
type ProcessEventBodyStartMethod string
const ( ProcessEventBodyStartMethod_Launch ProcessEventBodyStartMethod = "launch" ProcessEventBodyStartMethod_Attach ProcessEventBodyStartMethod = "attach" ProcessEventBodyStartMethod_AttachForSuspendedLaunch ProcessEventBodyStartMethod = "attachForSuspendedLaunch" )
type ProgressEndEventBody ¶
type ProgressStartEventBody ¶
type ProgressUpdateEventBody ¶
type ProtocolMessage ¶
type ProtocolMessage struct { Seq int `json:"seq"` Type ProtocolMessageType `json:"type"` }
type ProtocolMessageType ¶
type ProtocolMessageType string
const ( ProtocolMessageType_Request ProtocolMessageType = "request" ProtocolMessageType_Response ProtocolMessageType = "response" ProtocolMessageType_Event ProtocolMessageType = "event" )
type ReadMemoryArguments ¶
type ReadMemoryResponseBody ¶
type Request ¶
type Request struct { ProtocolMessage Command string `json:"command"` Arguments RequestArguments `json:"arguments,omitempty"` }
func (*Request) MarshalJSON ¶
MarshalJSON marshalls the request to JSON.
func (*Request) UnmarshalJSON ¶
UnmarshalJSON unmarshalls the request from JSON.
type RequestArguments ¶
type RequestArguments interface {
// contains filtered or unexported methods
}
type Response ¶
type Response struct { ProtocolMessage Command string `json:"command"` Body ResponseBody `json:"body,omitempty"` Message *String `json:"message,omitempty"` RequestSeq int `json:"request_seq"` Success bool `json:"success"` }
func (*Response) MarshalJSON ¶
MarshalJSON marshalls the response to JSON.
func (*Response) UnmarshalJSON ¶
UnmarshalJSON unmarshalls the response from JSON.
type ResponseBody ¶
type ResponseBody interface {
// contains filtered or unexported methods
}
type RestartArguments ¶
type RestartArguments struct {
Arguments interface{} `json:"arguments,omitempty"`
}
type RestartFrameArguments ¶
type RestartFrameArguments struct {
FrameId int `json:"frameId"`
}
type RestartFrameResponseBody ¶
type RestartFrameResponseBody struct{}
type RestartResponseBody ¶
type RestartResponseBody struct{}
type ReverseContinueArguments ¶
type ReverseContinueArguments struct {
ThreadId int `json:"threadId"`
}
type ReverseContinueResponseBody ¶
type ReverseContinueResponseBody struct{}
type RunInTerminalRequestArgumentsKind ¶
type RunInTerminalRequestArgumentsKind string
const ( RunInTerminalRequestArgumentsKind_Integrated RunInTerminalRequestArgumentsKind = "integrated" RunInTerminalRequestArgumentsKind_External RunInTerminalRequestArgumentsKind = "external" )
type Scope ¶
type Scope struct { Column *Integer `json:"column,omitempty"` EndColumn *Integer `json:"endColumn,omitempty"` EndLine *Integer `json:"endLine,omitempty"` Expensive bool `json:"expensive"` IndexedVariables *Integer `json:"indexedVariables,omitempty"` Line *Integer `json:"line,omitempty"` Name string `json:"name"` NamedVariables *Integer `json:"namedVariables,omitempty"` PresentationHint *String `json:"presentationHint,omitempty"` Source *Source `json:"source,omitempty"` VariablesReference int `json:"variablesReference"` }
type ScopesArguments ¶
type ScopesArguments struct {
FrameId int `json:"frameId"`
}
type ScopesResponseBody ¶
type ScopesResponseBody struct {
Scopes []*Scope `json:"scopes"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a DAP server that accepts connections and starts DAP sessions.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session handles the low-level mechanics of a DAP session.
func NewSession ¶
NewSession returns a new Session. The session reads messages from the reader and writes messages to the writer. The caller is responsible for closing the reader and writer.
func (*Session) Debug ¶
Debug sets the debug writer. If the debug writer is non-null, sent and received DAP messages will be written to it.
type SetBreakpointsArguments ¶
type SetBreakpointsArguments struct { Breakpoints []*SourceBreakpoint `json:"breakpoints,omitempty"` Lines []int `json:"lines,omitempty"` Source Source `json:"source"` SourceModified *Boolean `json:"sourceModified,omitempty"` }
type SetBreakpointsResponseBody ¶
type SetBreakpointsResponseBody struct {
Breakpoints []*Breakpoint `json:"breakpoints"`
}
type SetDataBreakpointsArguments ¶
type SetDataBreakpointsArguments struct {
Breakpoints []*DataBreakpoint `json:"breakpoints"`
}
type SetDataBreakpointsResponseBody ¶
type SetDataBreakpointsResponseBody struct {
Breakpoints []*Breakpoint `json:"breakpoints"`
}
type SetExceptionBreakpointsArguments ¶
type SetExceptionBreakpointsArguments struct { ExceptionOptions []*ExceptionOptions `json:"exceptionOptions,omitempty"` FilterOptions []*ExceptionFilterOptions `json:"filterOptions,omitempty"` Filters []string `json:"filters"` }
type SetExceptionBreakpointsResponseBody ¶
type SetExceptionBreakpointsResponseBody struct{}
type SetExpressionArguments ¶
type SetExpressionArguments struct { Expression string `json:"expression"` Format *ValueFormat `json:"format,omitempty"` FrameId *Integer `json:"frameId,omitempty"` Value string `json:"value"` }
type SetExpressionResponseBody ¶
type SetExpressionResponseBody struct { IndexedVariables *Integer `json:"indexedVariables,omitempty"` NamedVariables *Integer `json:"namedVariables,omitempty"` PresentationHint *VariablePresentationHint `json:"presentationHint,omitempty"` Type *String `json:"type,omitempty"` Value string `json:"value"` VariablesReference *Integer `json:"variablesReference,omitempty"` }
type SetFunctionBreakpointsArguments ¶
type SetFunctionBreakpointsArguments struct {
Breakpoints []*FunctionBreakpoint `json:"breakpoints"`
}
type SetFunctionBreakpointsResponseBody ¶
type SetFunctionBreakpointsResponseBody struct {
Breakpoints []*Breakpoint `json:"breakpoints"`
}
type SetInstructionBreakpointsArguments ¶
type SetInstructionBreakpointsArguments struct {
Breakpoints []*InstructionBreakpoint `json:"breakpoints"`
}
type SetInstructionBreakpointsResponseBody ¶
type SetInstructionBreakpointsResponseBody struct {
Breakpoints []*Breakpoint `json:"breakpoints"`
}
type SetVariableArguments ¶
type SetVariableArguments struct { Format *ValueFormat `json:"format,omitempty"` Name string `json:"name"` Value string `json:"value"` VariablesReference int `json:"variablesReference"` }
type SetVariableResponseBody ¶
type Source ¶
type Source struct { AdapterData interface{} `json:"adapterData,omitempty"` Checksums []*Checksum `json:"checksums,omitempty"` Name *String `json:"name,omitempty"` Origin *String `json:"origin,omitempty"` Path *String `json:"path,omitempty"` PresentationHint *String `json:"presentationHint,omitempty"` SourceReference *Integer `json:"sourceReference,omitempty"` Sources []*Source `json:"sources,omitempty"` }
type SourceArguments ¶
type SourceBreakpoint ¶
type SourcePresentationHint ¶
type SourcePresentationHint string
const ( SourcePresentationHint_Normal SourcePresentationHint = "normal" SourcePresentationHint_Emphasize SourcePresentationHint = "emphasize" SourcePresentationHint_Deemphasize SourcePresentationHint = "deemphasize" )
type SourceResponseBody ¶
type StackFrame ¶
type StackFrame struct { CanRestart *Boolean `json:"canRestart,omitempty"` Column int `json:"column"` EndColumn *Integer `json:"endColumn,omitempty"` EndLine *Integer `json:"endLine,omitempty"` Id int `json:"id"` InstructionPointerReference *String `json:"instructionPointerReference,omitempty"` Line int `json:"line"` ModuleId interface{} `json:"moduleId,omitempty"` Name string `json:"name"` PresentationHint *String `json:"presentationHint,omitempty"` Source *Source `json:"source,omitempty"` }
type StackFrameFormat ¶
type StackFrameFormat struct { ValueFormat IncludeAll *Boolean `json:"includeAll,omitempty"` Line *Boolean `json:"line,omitempty"` Module *Boolean `json:"module,omitempty"` ParameterNames *Boolean `json:"parameterNames,omitempty"` ParameterTypes *Boolean `json:"parameterTypes,omitempty"` ParameterValues *Boolean `json:"parameterValues,omitempty"` Parameters *Boolean `json:"parameters,omitempty"` }
type StackFramePresentationHint ¶
type StackFramePresentationHint string
const ( StackFramePresentationHint_Normal StackFramePresentationHint = "normal" StackFramePresentationHint_Label StackFramePresentationHint = "label" StackFramePresentationHint_Subtle StackFramePresentationHint = "subtle" )
type StackTraceArguments ¶
type StackTraceArguments struct { Format *StackFrameFormat `json:"format,omitempty"` Levels *Integer `json:"levels,omitempty"` StartFrame *Integer `json:"startFrame,omitempty"` ThreadId int `json:"threadId"` }
type StackTraceResponseBody ¶
type StackTraceResponseBody struct { StackFrames []*StackFrame `json:"stackFrames"` TotalFrames *Integer `json:"totalFrames,omitempty"` }
type StepBackArguments ¶
type StepBackResponseBody ¶
type StepBackResponseBody struct{}
type StepInArguments ¶
type StepInResponseBody ¶
type StepInResponseBody struct{}
type StepInTarget ¶
type StepInTargetsArguments ¶
type StepInTargetsArguments struct {
FrameId int `json:"frameId"`
}
type StepInTargetsResponseBody ¶
type StepInTargetsResponseBody struct {
Targets []*StepInTarget `json:"targets"`
}
type StepOutArguments ¶
type StepOutResponseBody ¶
type StepOutResponseBody struct{}
type SteppingGranularity ¶
type SteppingGranularity string
const ( SteppingGranularity_Statement SteppingGranularity = "statement" SteppingGranularity_Line SteppingGranularity = "line" SteppingGranularity_Instruction SteppingGranularity = "instruction" )
type StoppedEventBody ¶
type StoppedEventBody struct { AllThreadsStopped *Boolean `json:"allThreadsStopped,omitempty"` Description *String `json:"description,omitempty"` HitBreakpointIds []int `json:"hitBreakpointIds,omitempty"` PreserveFocusHint *Boolean `json:"preserveFocusHint,omitempty"` Reason string `json:"reason"` Text *String `json:"text,omitempty"` ThreadId *Integer `json:"threadId,omitempty"` }
type TerminateArguments ¶
type TerminateArguments struct {
Restart *Boolean `json:"restart,omitempty"`
}
type TerminateResponseBody ¶
type TerminateResponseBody struct{}
type TerminateThreadsArguments ¶
type TerminateThreadsArguments struct {
ThreadIds []int `json:"threadIds,omitempty"`
}
type TerminateThreadsResponseBody ¶
type TerminateThreadsResponseBody struct{}
type TerminatedEventBody ¶
type TerminatedEventBody struct {
Restart interface{} `json:"restart,omitempty"`
}
type ThreadEventBody ¶
type ThreadsArguments ¶
type ThreadsArguments struct{}
type ThreadsResponseBody ¶
type ThreadsResponseBody struct {
Threads []*Thread `json:"threads"`
}
type ValueFormat ¶
type ValueFormat struct {
Hex *Boolean `json:"hex,omitempty"`
}
type Variable ¶
type Variable struct { EvaluateName *String `json:"evaluateName,omitempty"` IndexedVariables *Integer `json:"indexedVariables,omitempty"` MemoryReference *String `json:"memoryReference,omitempty"` Name string `json:"name"` NamedVariables *Integer `json:"namedVariables,omitempty"` PresentationHint *VariablePresentationHint `json:"presentationHint,omitempty"` Type *String `json:"type,omitempty"` Value string `json:"value"` VariablesReference int `json:"variablesReference"` }
type VariablesArguments ¶
type VariablesArguments struct { Count *Integer `json:"count,omitempty"` Filter *String `json:"filter,omitempty"` Format *ValueFormat `json:"format,omitempty"` Start *Integer `json:"start,omitempty"` VariablesReference int `json:"variablesReference"` }
type VariablesArgumentsFilter ¶
type VariablesArgumentsFilter string
const ( VariablesArgumentsFilter_Indexed VariablesArgumentsFilter = "indexed" VariablesArgumentsFilter_Named VariablesArgumentsFilter = "named" )
type VariablesResponseBody ¶
type VariablesResponseBody struct {
Variables []*Variable `json:"variables"`
}
type WriteMemoryArguments ¶
type WriteMemoryResponseBody ¶
type WriteMemoryResponseBody struct{}