{"modulePath":"github.com/pencode-labs/pencode","version":"v0.1.0-rc.15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package debugger\n\nPackage debugger owns language-independent debug session state. Snapshots are immutable after publication and can be consumed without per-frame copies.\n\n## Types\n\n```go\ntype Config struct {\n\tLabel         string          `json:\"label\"`\n\tAdapter       string          `json:\"adapter\"`\n\tCommand       string          `json:\"command,omitempty\"`\n\tArgs          []string        `json:\"args,omitempty\"`\n\tAddress       string          `json:\"address,omitempty\"`\n\tRequest       string          `json:\"request\"`\n\tConfiguration json.RawMessage `json:\"configuration\"`\n}\n```\nConfig keeps the editor's adapter settings separate from the opaque DAP launch/attach payload. All paths are interpreted on the workspace machine.\n\n```go\nfunc ParseConfigs(data []byte, root string) ([]Config, error)\n```\n\n```go\nfunc (c Config) ResolveFile(filename string) (Config, error)\n```\nResolveFile expands the active workspace document at launch time so cached configurations follow file selection without changing the project JSON.\n\n```go\ntype Open func(context.Context) (io.ReadWriteCloser, error)\n```\n\n```go\ntype Session struct {\n\tOutput *output.Channel\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc Start(parent context.Context, config Config, breakpoints map[string][]dap.SourceBreakpoint, open Open, handler dap.Handler, channel *output.Channel, wake func()) *Session\n```\n\n```go\nfunc (s *Session) ClearConsole()\n```\n\n```go\nfunc (s *Session) Close()\n```\n\n```go\nfunc (s *Session) Control(command string)\n```\n\n```go\nfunc (s *Session) Done() \u003c-chan struct{}\n```\n\n```go\nfunc (s *Session) Evaluate(expression string)\n```\n\n```go\nfunc (s *Session) Expand(reference int)\n```\n\n```go\nfunc (s *Session) SelectFrame(id int)\n```\n\n```go\nfunc (s *Session) SelectThread(id int)\n```\n\n```go\nfunc (s *Session) SetBreakpoints(path string, breakpoints []dap.SourceBreakpoint)\n```\n\n```go\nfunc (s *Session) Snapshot() Snapshot\n```\n\n```go\nfunc (s *Session) Stop()\n```\n\n```go\ntype Snapshot struct {\n\tBreakpoints   map[string][]dap.Breakpoint\n\tVariables     map[int][]dap.Variable\n\tReason, Error string\n\tFrames        []dap.StackFrame\n\tThreads       []dap.Thread\n\tScopes        []dap.Scope\n\tEvaluations   []dap.Variable\n\tCapabilities  dap.Capabilities\n\tRevision      uint64\n\tThreadID      int\n\tFrameID       int\n\tEpoch         uint64\n\tState         State\n}\n```\n\n```go\ntype State uint8\n```\n\n```go\nconst (\n\tStarting State = iota\n\tConfiguring\n\tRunning\n\tStopped\n\tStopping\n\tEnded\n\tFailed\n)\n```\n\n```go\nfunc (state State) String() string\n```\n\n","path":"github.com/pencode-labs/pencode/debugger","name":"debugger","synopsis":"Package debugger owns language-independent debug session state.","isRedistributable":true}
