{"modulePath":"github.com/pencode-labs/pencode","version":"v0.1.0-rc.15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package dap\n\nPackage dap implements the Debug Adapter Protocol independently of the UI and of the transport used to reach the adapter.\n\n## Constants\n\n```go\nconst MaxMessage = 32 \u003c\u003c 20\n```\n\n## Variables\n\n```go\nvar ErrClosed = errors.New(\"dap: connection closed\")\n```\n\n## Functions\n\n```go\nfunc Call[A, R any](ctx context.Context, c *Conn, command string, args A) (R, error)\n```\n\n## Types\n\n```go\ntype Breakpoint struct {\n\tMessage  string `json:\"message\"`\n\tSource   Source `json:\"source\"`\n\tID       int    `json:\"id\"`\n\tLine     int    `json:\"line\"`\n\tVerified bool   `json:\"verified\"`\n}\n```\n\n```go\ntype Capabilities struct {\n\tExceptionBreakpointFilters []ExceptionFilter `json:\"exceptionBreakpointFilters\"`\n\tConfigurationDone          bool              `json:\"supportsConfigurationDoneRequest\"`\n\tConditionalBreakpoints     bool              `json:\"supportsConditionalBreakpoints\"`\n\tHitConditionalBreakpoints  bool              `json:\"supportsHitConditionalBreakpoints\"`\n\tLogPoints                  bool              `json:\"supportsLogPoints\"`\n\tTerminate                  bool              `json:\"supportsTerminateRequest\"`\n\tVariablePaging             bool              `json:\"supportsVariablePaging\"`\n}\n```\n\n```go\ntype Conn struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(stream io.ReadWriteCloser, event func(string, json.RawMessage), handler Handler) *Conn\n```\nNew owns stream. Event callbacks must return promptly; requests may be made from a callback because responses are routed by the independent reader.\n\n```go\nfunc (c *Conn) Call(ctx context.Context, command string, args any, result any) error\n```\nCall preserves adapter-specific arguments and results without a closed command enumeration. Cancellation removes the pending request immediately.\n\n```go\nfunc (c *Conn) Close() error\n```\n\n```go\nfunc (c *Conn) Done() \u003c-chan struct{}\n```\n\n```go\nfunc (c *Conn) Err() error\n```\n\n```go\nfunc (c *Conn) EventsDone() \u003c-chan struct{}\n```\nEventsDone closes after queued adapter events have been delivered, including terminal events immediately preceding EOF.\n\n```go\ntype EvaluateResponse struct {\n\tResult             string `json:\"result\"`\n\tType               string `json:\"type\"`\n\tVariablesReference int    `json:\"variablesReference\"`\n\tNamedVariables     int    `json:\"namedVariables\"`\n\tIndexedVariables   int    `json:\"indexedVariables\"`\n}\n```\n\n```go\ntype ExceptionFilter struct {\n\tFilter  string `json:\"filter\"`\n\tDefault bool   `json:\"default\"`\n}\n```\n\n```go\ntype Handler func(context.Context, string, json.RawMessage) (any, error)\n```\n\n```go\ntype Message struct {\n\tType       string          `json:\"type\"`\n\tCommand    string          `json:\"command,omitempty\"`\n\tMessage    string          `json:\"message,omitempty\"`\n\tEvent      string          `json:\"event,omitempty\"`\n\tArguments  json.RawMessage `json:\"arguments,omitempty\"`\n\tBody       json.RawMessage `json:\"body,omitempty\"`\n\tSeq        int             `json:\"seq\"`\n\tRequestSeq int             `json:\"request_seq,omitempty\"`\n\tSuccess    bool            `json:\"success\"`\n}\n```\n\n```go\ntype RunInTerminalArguments struct {\n\tEnv                         map[string]*string `json:\"env\"`\n\tKind                        string             `json:\"kind\"`\n\tTitle                       string             `json:\"title\"`\n\tCwd                         string             `json:\"cwd\"`\n\tArgs                        []string           `json:\"args\"`\n\tArgsCanBeInterpretedByShell bool               `json:\"argsCanBeInterpretedByShell\"`\n}\n```\n\n```go\ntype Scope struct {\n\tName               string `json:\"name\"`\n\tVariablesReference int    `json:\"variablesReference\"`\n\tExpensive          bool   `json:\"expensive\"`\n}\n```\n\n```go\ntype Source struct {\n\tName            string `json:\"name,omitempty\"`\n\tPath            string `json:\"path,omitempty\"`\n\tSourceReference int    `json:\"sourceReference,omitempty\"`\n}\n```\n\n```go\ntype SourceBreakpoint struct {\n\tCondition    string `json:\"condition,omitempty\"`\n\tHitCondition string `json:\"hitCondition,omitempty\"`\n\tLogMessage   string `json:\"logMessage,omitempty\"`\n\tLine         int    `json:\"line\"`\n\tColumn       int    `json:\"column,omitempty\"`\n}\n```\n\n```go\ntype StackFrame struct {\n\tName   string `json:\"name\"`\n\tSource Source `json:\"source\"`\n\tID     int    `json:\"id\"`\n\tLine   int    `json:\"line\"`\n\tColumn int    `json:\"column\"`\n}\n```\n\n```go\ntype StoppedEvent struct {\n\tReason            string `json:\"reason\"`\n\tDescription       string `json:\"description\"`\n\tThreadID          int    `json:\"threadId\"`\n\tAllThreadsStopped bool   `json:\"allThreadsStopped\"`\n}\n```\n\n```go\ntype Thread struct {\n\tName string `json:\"name\"`\n\tID   int    `json:\"id\"`\n}\n```\n\n```go\ntype Variable struct {\n\tName               string `json:\"name\"`\n\tValue              string `json:\"value\"`\n\tType               string `json:\"type\"`\n\tEvaluateName       string `json:\"evaluateName\"`\n\tVariablesReference int    `json:\"variablesReference\"`\n\tNamedVariables     int    `json:\"namedVariables\"`\n\tIndexedVariables   int    `json:\"indexedVariables\"`\n}\n```\n\n","path":"github.com/pencode-labs/pencode/dap","name":"dap","synopsis":"Package dap implements the Debug Adapter Protocol independently of the UI and of the transport used to reach the adapter.","isRedistributable":true}
