Documentation
¶
Overview ¶
Package dapserver implements a DAP (Debug Adapter Protocol) server for the ELPS debugger engine. It translates between the DAP wire protocol and the debugger.Engine interface.
The server supports two transport modes:
- TCP: Primary mode for embedded/attached debugging. The server listens on a TCP port and accepts a single client connection.
- Stdio: For CLI use (e.g., "elps debug --stdio"). The server reads from stdin and writes to stdout, as expected by editors like VS Code when launching a debug adapter as a child process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a DAP protocol server that wraps a debugger Engine.
func (*Server) ServeConn ¶
func (s *Server) ServeConn(conn io.ReadWriteCloser) error
ServeConn serves DAP messages on a single connection. It blocks until the connection is closed or a disconnect request is received.
func (*Server) ServeListener ¶
ServeListener accepts a single connection from the listener and serves DAP messages on it.
func (*Server) ServeStdio ¶
ServeStdio serves DAP messages on the given reader and writer, typically os.Stdin and os.Stdout.
Click to show internal directories.
Click to hide internal directories.