0abcd76101
- Simplified system and personality prompts for improved conciseness and clarity. - Streamlined tool instruction sets and parameter descriptions across all agent modules. - Refactored prompt documentation in `hashline` to clarify terminology and task-specific constraints. - Updated tool metadata in TypeScript service definitions to align with reduced documentation verbosity.
1.4 KiB
1.4 KiB
Debugger access.
- You SHOULD prefer this over bash for program state, breakpoints, stepping, thread inspection, or interrupting a running process. - `action: "launch"` starts a session; `program` required, `adapter` optional. Python: `adapter: "debugpy"`, `program` = target `.py`, interpreter/script flags in `args`. - `action: "attach"` connects to a running process: `pid` (local), `port` (remote), `adapter` forces a specific debugger. - **Breakpoints**: `set_breakpoint`/`remove_breakpoint` with source (`file`+`line`) or function (`function`); optional `condition`. - **Flow control**: `continue` (resume), `step_over`/`step_in`/`step_out` (single-step), `pause` (interrupt a running program). - **Inspect**: `threads`, `stack_trace` (current stopped thread), `scopes` (needs `frame_id` or current stopped frame), `variables` (needs `variable_ref` or `scope_id`), `evaluate` (needs `expression`; `context: "repl"` for raw debugger commands), `output` (stdout/stderr/console), `sessions`, `terminate`. - Only one active debug session at a time. - Valid `adapter` values: `gdb`, `lldb-dap`, `python -m debugpy.adapter`, `dlv dap` (must be installed locally). - `program` must be an executable file or debug target, not a directory or bare interpreter name. - Python debugging requires `debugpy`; `pip install debugpy` if unavailable.