Debugging Code
Skill Verified ActiveInteractively debug source code — set breakpoints, step through execution line by line, inspect live variable state, evaluate expressions against the running program, and navigate the call stack to trace root causes. Use when a program crashes, raises unexpected exceptions, produces wrong output, when you need to understand how execution reached a certain state, or when print-statement debugging isn't revealing enough.
To enable AI agents to debug source code interactively, mirroring human developer workflows by setting breakpoints, stepping through execution, and inspecting live variable state.
Features
- Set breakpoints (conditional, exception-based)
- Step through code execution (line by line, into, out, over)
- Inspect live variable state and call stack
- Evaluate arbitrary expressions against running program
- Attach to running processes or remote debuggers
Use Cases
- Use when a program crashes or raises unexpected exceptions.
- Use when output is incorrect and print-statement debugging is insufficient.
- Use to understand how execution reached a specific state in complex code.
- Use to trace root causes by stepping through execution and inspecting variables.
Non-Goals
- Automated code fixing or patching.
- Static code analysis or linting.
- Deployment or testing of applications.
Workflow
- User identifies a bug or needs to understand execution flow.
- User invokes the skill with `dap debug <file>` and optionally specifies breakpoints.
- Skill launches the program under the debugger via the `dap` CLI.
- Program execution pauses at breakpoints or on entry.
- User interacts with the debugger using commands like `step`, `eval`, `inspect` to explore state.
- User continues execution or attaches to a running process.
- User verifies fixes by re-running or restarting the debugged program.
- Session is terminated via `dap stop` or automatically.
Practices
- Debugging Workflow
- Interactive Execution
- State Inspection
Prerequisites
- The `dap` CLI tool must be installed.
- A compatible debugger backend for the target language must be installed.
- The target program must be launchable or attachable by the debugger.
Installation
First, add the marketplace
/plugin marketplace add AlmogBaku/debug-skill/plugin install debug-skill@debug-skill-marketplaceQuality Score
VerifiedTrust Signals
Similar Extensions
Cleanup Cycles
100Detect and untangle circular dependencies. Runs madge/skott (TS), pycycle (Py), or compiler-only checks (Go/Rust). Auto-fixes leaf-extractable cycles; reports core cycles for human review. Use when the user asks to find circular imports, fix dependency cycles, or untangle module graph. Example queries — "find circular imports", "fix dependency cycles", "untangle our module graph", "why is madge complaining".
Openclaw Debugging
100Debug OpenClaw model, provider, tool-surface, code-mode, streaming, and live/Crabbox behavior by choosing the right logs, probes, and proof path before changing code.
Treat
100Prune bloated session with a prescription. Removes progress ticks, stale reads, duplicate content, and more.
Using Git Worktrees
100Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
Lean Ctx
100Context Runtime for AI Agents — 59 MCP tools, 10 read modes, 95+ shell patterns, tree-sitter AST for 18 languages. Compresses LLM context by up to 99%. Use when reading files, running shell commands, searching code, or exploring directories. Auto-installs if not present.
Coding Standards
100Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.