Documentation
¶
Overview ¶
Package debugadapter contains the language-specific edge of debugging: source target discovery, deterministic launch policy, and the descriptor for starting each language's standalone Debug Adapter Protocol process.
Protocol framing and session state remain in package dap.
Index ¶
- type Breakpoint
- type Connector
- type LanguageAdapter
- type Plan
- type Registry
- func (registry *Registry) Descriptors() []dap.AdapterDescriptor
- func (registry *Registry) DetectFile(path string, source []byte) ([]Target, error)
- func (registry *Registry) DetectWorkspace(ctx context.Context, root string) ([]Target, error)
- func (registry *Registry) JDTLSBundles() []string
- func (registry *Registry) Plan(language string, request Request) (Plan, error)
- type Request
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Breakpoint ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector bridges host-created adapters into the language-neutral DAP manager. At present only java-debug needs this path.
func NewConnector ¶
func (*Connector) ConnectAdapter ¶
type LanguageAdapter ¶
type LanguageAdapter interface {
Language() string
Descriptor() dap.AdapterDescriptor
Matches(path string) bool
Detect(path string, source []byte) ([]Target, error)
Plan(Request) (Plan, error)
}
LanguageAdapter owns all stable language-specific behavior. Implementations must not execute user code while detecting targets or preparing a plan.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func NewRegistryWith ¶
func NewRegistryWith(adapters ...LanguageAdapter) *Registry
func (*Registry) Descriptors ¶
func (registry *Registry) Descriptors() []dap.AdapterDescriptor
func (*Registry) DetectFile ¶
func (*Registry) DetectWorkspace ¶
func (*Registry) JDTLSBundles ¶
JDTLSBundles returns Java debug plug-ins that must be loaded when JDT LS is initialized. The Java DAP server is supplied by this bundle, not by a standalone executable.