python-debugpy

Debug Python programs with pdb breakpoints and debugpy remote DAP.

19|4|Updated Apr 22, 2026
One-click install
npx skills add https://github.com/carterwayneskhizeine/hermes-agent-windows-R --skill python-debugpy-carterwayneskhizeine
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/carterwayneskhizeine/hermes-agent-windows-R/tree/main/skills/software-development/python-debugpy
Command: npx skills add https://github.com/carterwayneskhizeine/hermes-agent-windows-R --skill python-debugpy-carterwayneskhizeine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you pinpoint why Python behavior is wrong by letting you inspect program state at the exact moment an error happens and, when needed, attach a debugger to already-running processes.

Core Features & Use Cases

  • Interactive breakpoint debugging with pdb: Drop into a REPL at a specific line using breakpoint() and inspect or mutate in-scope locals.
  • Test-time and script debugging with pdb: Launch scripts under pdb and debug failing pytest cases (with guidance to avoid xdist pitfalls).
  • Remote/headless debugging with debugpy (DAP): Listen for a client, wait for attachment, set breakpoints, and attach to long-lived Hermes components or subprocesses.

Quick Start

Ask the AI: "Help me debug a failing Hermes gateway run by adding a pdb breakpoint for local inspection and then switching to debugpy remote attach when the issue only appears in a long-running process."

Frequently Asked Questions about python-debugpy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a running Python process with debugpy?▼

You can debug a running Python process by using debugpy to listen for a client and remote attach. This allows you to inspect locals and set breakpoints on long-lived Hermes components or subprocesses without restarting them.

How do I set a breakpoint to inspect locals in a failing Python script?▼

You can set a breakpoint in your Python script using breakpoint() to drop into a pdb REPL. This lets you inspect or mutate in-scope locals at the exact line where the error occurs.

Can I debug failing pytest cases with pdb?▼

Yes, you can debug failing pytest cases by launching scripts under pdb. The Skill provides guidance to help you avoid common xdist pitfalls during test-time debugging.

What is the best way to choose between pdb and debugpy for Python debugging?▼

Use pdb for local interactive breakpoint debugging and REPL inspection at crash sites. Switch to debugpy remote DAP attachment when the issue only appears in long-running processes or subprocesses.

How do I debug subprocess or child-worker issues in Python?▼

You can debug subprocess or child-worker issues by attaching debugpy to the running PID. This remote DAP approach lets you inspect program state in long-lived processes where standard debugging fails.