Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter is a DAP handler that debugs Go code compiled with an interpreter.
func NewAdapter ¶
NewAdapter returns a new Adapter that debugs Go code located at the given path and compiles it with a given Interpreter compile function.
func NewEvalAdapter ¶
NewEvalAdapter returns an Adapter that debugs a Go code represented as a string.
func NewEvalPathAdapter ¶
NewEvalPathAdapter returns an Adapter that debugs Go code located at the given path.
func (*Adapter) Initialize ¶
func (a *Adapter) Initialize(s *dap.Session, ccaps *dap.InitializeRequestArguments) (*dap.Capabilities, error)
Initialize implements dap.Handler and should not be called directly.
type Options ¶
type Options struct { // SrcPath is used for setting breakpoints on '_.go'. If it is non-empty, // SrcPath will be replaced with _.go in breakpoint requests and vice versa // in stack traces. SrcPath string // NewInterpreter is called to create the interpreter. NewInterpreter func(interp.Options) (*interp.Interpreter, error) // If StopAtEntry is set, the debugger will halt on entry. StopAtEntry bool // Non-fatal errors will be sent to Errors if it is non-nil Errors chan<- error }
Options for Adapter.
Click to show internal directories.
Click to hide internal directories.