# Interactive debugging

> Interactive debugging is an open-source agent skill for developer tools. Guides the agent through a hypothesis-driven runtime debugging loop with temporary probes. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/denysdovhan/skills/tree/main/skills/interactive-debugging
- **Repository:** https://github.com/denysdovhan/skills
- **GitHub stars:** 21
- **License:** MIT
- **Skill name:** interactive-debugging
- **Collection:** https://github.com/denysdovhan/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill walks the agent through a debug cycle: form hypotheses, add a thin local HTTP logging server, insert temporary probes wrapped in DEBUG region markers, ask the user to reproduce the problem, then read the captured log to confirm or reject each hypothesis. Once a fix is verified, the agent is directed to remove all probes, stop the server and delete the debug files.

Bundled JavaScript and Python servers accept POST requests on a default localhost port and append each request body with a timestamp to a log file inside a .debug folder in the project. The skill also includes dependency-free probe snippets for other languages and guidance on choosing event names, correlation IDs and compact values while avoiding secrets or private data.

It expects Node.js or Python to run the included server, a project the agent can edit, and a user willing to reproduce the issue on demand.

## When your agent uses it

> Use this skill when debugging runtime behavior requires live data from the running app, temporary instrumentation, or hypothesis verification through logs. Trigger for async timeouts, stale or incorrect state updates, race conditions, event ordering bugs, intermittent failures, browser/client behavior that static inspection cannot explain, or any issue where the agent should create a local debug HTTP server, insert temporary probes, ask the user to reproduce, inspect .debug/debug.log, then remove all debug instrumentation and assets.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript and Python scripts](https://github.com/denysdovhan/skills/tree/HEAD/skills/interactive-debugging)
- [No network calls found in its scripts](https://github.com/denysdovhan/skills/tree/HEAD/skills/interactive-debugging)
- [Includes binary files](https://github.com/denysdovhan/skills/tree/HEAD/skills/interactive-debugging)
- [License: MIT](https://github.com/denysdovhan/skills/tree/HEAD/skills/interactive-debugging)

## Features

- **Hypothesis-driven debug loop:** Walks through stating hypotheses, instrumenting, reproducing, reading logs and verifying a fix.
- **Local debug log server:** Provides thin JavaScript and Python servers that append posted probe data to a log file.
- **Region-marked temporary probes:** Shows how to wrap instrumentation in DEBUG region markers for several languages.
- **Safe probe data guidance:** Explains which event names, IDs and values to log and which sensitive data to exclude.
- **Full cleanup procedure:** Removes probes, stops the server and deletes debug assets, with a search to verify removal.
- **Log reading checklist:** Offers patterns for interpreting missing events, ordering, duplicates and swallowed errors.

## Good for

- Track down a race condition causing stale state in a web app
- Find out why an async request intermittently times out
- Trace event ordering in browser client code that static reading cannot explain
- Add temporary logging to verify a hypothesis, then remove it cleanly

## Install

### Claude Code

This skill ships in the `dd-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add denysdovhan/skills
/plugin install dd-skills@dd-skills
```

Or copy only this skill to `~/.claude/skills/interactive-debugging`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/denysdovhan/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/interactive-debugging &&
cp -R "$tmp/skills/interactive-debugging" ~/.claude/skills/interactive-debugging &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/interactive-debugging` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/interactive-debugging` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/denysdovhan/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/interactive-debugging &&
cp -R "$tmp/skills/interactive-debugging" ~/.agents/skills/interactive-debugging &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/interactive-debugging` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/interactive-debugging` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/denysdovhan/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/interactive-debugging &&
cp -R "$tmp/skills/interactive-debugging" ~/.cursor/skills/interactive-debugging &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/interactive-debugging` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/denysdovhan/skills.git --path skills/interactive-debugging
```

Or copy the folder to `~/.gemini/skills/interactive-debugging` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/interactive-debugging`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/denysdovhan/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/interactive-debugging &&
cp -R "$tmp/skills/interactive-debugging" ~/.copilot/skills/interactive-debugging &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/interactive-debugging` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/denysdovhan/skills.git
```

Then copy `skills/skills/interactive-debugging` into your agent's skills folder as `interactive-debugging`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

The bundled servers are JavaScript (Node.js) and Python, so one of those runtimes is needed for the included servers. For other languages the agent creates an equivalent minimal server.

### Does Interactive debugging leave debug code in my project?

No. The workflow ends with removing every DEBUG region, stopping the server and deleting the .debug files, then verifying with a search.

### When does the skill trigger?

It is meant for runtime issues such as async timeouts, stale state, race conditions, intermittent failures and client behavior that static inspection cannot explain.

### How do I install Interactive debugging in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/interactive-debugging to use it in all your projects, or to .claude/skills/interactive-debugging in one project. Or install the dd-skills plugin, which includes it: /plugin marketplace add denysdovhan/skills, then /plugin install dd-skills@dd-skills.

### Does Interactive debugging run scripts?

Yes. It runs JavaScript and Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Interactive debugging?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Interactive debugging?

The closest alternatives to Interactive debugging are Diagnosing bugs, Diagnostic reasoning, Probe debugging, Agent introspection debugging and Debug.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Diagnosing bugs](https://ai-powered.com/skills/diagnosing-bugs): Diagnosing bugs is an open-source agent skill for developer tools.
- [Diagnostic reasoning](https://ai-powered.com/skills/diagnostic-reasoning): Diagnostic reasoning is an open-source agent skill for developer tools.
- [Probe debugging](https://ai-powered.com/skills/probe-debugging): Probe debugging is an open-source agent skill for developer tools.
- [Agent introspection debugging](https://ai-powered.com/skills/agent-introspection-debugging): Agent introspection debugging is an open-source agent skill for developer tools.
- [Debug](https://ai-powered.com/skills/debug): Debug is an open-source agent skill for developer tools.
- [Java debugging](https://ai-powered.com/skills/java-debugging): Java debugging is an open-source agent skill for developer tools.
- [Principle fix root causes](https://ai-powered.com/skills/principle-fix-root-causes): Principle fix root causes is an open-source agent skill for developer tools.
- [Android debug](https://ai-powered.com/skills/android-debug): Android debug is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/interactive-debugging
