Skip to main content

Debugging Code

Skill Verified Active

Interactively 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.

Purpose

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

  1. User identifies a bug or needs to understand execution flow.
  2. User invokes the skill with `dap debug <file>` and optionally specifies breakpoints.
  3. Skill launches the program under the debugger via the `dap` CLI.
  4. Program execution pauses at breakpoints or on entry.
  5. User interacts with the debugger using commands like `step`, `eval`, `inspect` to explore state.
  6. User continues execution or attaches to a running process.
  7. User verifies fixes by re-running or restarting the debugged program.
  8. 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-marketplace

Quality Score

Verified
99 /100
Analyzed 1 day ago

Trust Signals

Last commit27 days ago
Stars265
LicenseMIT
Status
View Source

Similar Extensions

Cleanup Cycles

100

Detect 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".

Skill
raintree-technology

Openclaw Debugging

100

Debug OpenClaw model, provider, tool-surface, code-mode, streaming, and live/Crabbox behavior by choosing the right logs, probes, and proof path before changing code.

Skill
steipete

Treat

100

Prune bloated session with a prescription. Removes progress ticks, stale reads, duplicate content, and more.

Skill
Ruya-AI

Using Git Worktrees

100

Use 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

Skill
obra

Lean Ctx

100

Context 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.

Skill
yvgude

Coding Standards

100

Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.

Skill
affaan-m

© 2025 SkillRepo · Find the right skill, skip the noise.