# Debugging

A walkthrough of Python debugging: pdb sessions, IDE breakpoints, logging setup, profilers and traceback reading, with the commands spelled out.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 233 installs · ★ 7 repo stars
- Author: pluginagentmarketplace
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pluginagentmarketplace/custom-plugin-python/tree/HEAD/skills/debugging/SKILL.md
- Updated: 2026-01-05
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/pluginagentmarketplace-debugging

## What it does

The skill splits Python debugging into five blocks. The `pdb` part starts with the everyday commands, then `breakpoint()`, inspecting a process that already crashed, attaching to a remote one and the `pdb++` add-ons. The IDE material covers VS Code and PyCharm debuggers, conditional breakpoints, watch expressions and moving around the call stack.

Logging runs from wiring up the `logging` module to structured records and shipping them to an aggregator. Profiling lists `cProfile`, `line_profiler`, `memory_profiler`, `py-spy` on live servers and flame graphs. Error work means reading a traceback, chained exceptions, context managers, Sentry wiring and monitoring.

The skill is bound to the `04-testing-quality` subagent as its PRIMARY_BOND, so it is meant to travel with that pairing rather than stand alone. Python basics and exception handling are listed as prerequisites: without them the traceback and chaining material reads as a glossary.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill debugging -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/debugging/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/debugging/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill debugging -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/debugging/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill debugging -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/debugging/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pluginagentmarketplace/custom-plugin-python skills/debugging
```

2. **Manually: put the files in place**
- File: `.github/skills/debugging/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill debugging -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-python --path skills/debugging
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/debugging/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill debugging -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/pluginagentmarketplace/custom-plugin-python/tree/HEAD/skills/debugging/SKILL.md

## When to use it
- trace an exception back to the line that actually broke
- drop `breakpoint()` into a failing branch and step the stack
- set up `logging` with levels and handlers
- profile a slow function with `cProfile` and `line_profiler`
- wire Sentry into a service and group its errors

## Example prompts
- Walk me through this traceback and show where the exception chain starts.
- Put `breakpoint()` in the branch that fails inside `parser.py` and step through the call stack.
- Profile `build_report()` with `cProfile` and tell me which calls dominate.

## Similar
- [debugging-wizard](https://affpapa.org/en/nevibecode/skills/debugging-wizard.md) — skill · 5600 installs
- [ue-testing-debugging](https://affpapa.org/en/nevibecode/skills/ue-testing-debugging.md) — skill · 1600 installs
- [python-debugpy](https://affpapa.org/en/nevibecode/skills/python-debugpy.md) — skill · 407 installs
- [clr-activation-debugging](https://affpapa.org/en/nevibecode/skills/clr-activation-debugging.md) — skill · 4400 installs
- [debugging-strategies](https://affpapa.org/en/nevibecode/skills/debugging-strategies.md) — skill · 13414 installs
- [godot-debugging-profiling](https://affpapa.org/en/nevibecode/skills/godot-debugging-profiling.md) — skill · 537 installs

## Other versions with the same name
- [debugging · tursodatabase](https://affpapa.org/en/nevibecode/skills/debugging.md) — 1300 installs
- [debugging · mrgoonie](https://affpapa.org/en/nevibecode/skills/mrgoonie-debugging.md) — 580 installs
- [debugging · sentimony](https://affpapa.org/en/nevibecode/skills/sentimony-debugging.md) — 2800 installs
- [debugging · akillness](https://affpapa.org/en/nevibecode/skills/akillness-debugging.md) — 364 installs
- [debugging · siviter-xyz](https://affpapa.org/en/nevibecode/skills/siviter-xyz-debugging.md) — 151 installs

From the same set: [pluginagentmarketplace/custom-plugin-python](https://affpapa.org/en/nevibecode/by/pluginagentmarketplace/custom-plugin-python.md) — 12 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
