python-debugpy

Diagnose Python applications using pdb REPL and debugpy remote debugging.

Updated Jun 28, 2026
One-click install
npx skills add https://github.com/jleechanorg/hermes-agent --skill python-debugpy-jleechanorg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/jleechanorg/hermes-agent/tree/main/skills/software-development/python-debugpy
Command: npx skills add https://github.com/jleechanorg/hermes-agent --skill python-debugpy-jleechanorg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables debugging Python applications by combining the quick interactivity of pdb with the flexibility of remote debugging via debugpy, covering local, remote, and post-mortem scenarios.

Core Features & Use Cases

  • Local debugging with pdb prompts and interactive inspection.
  • Remote debugging via debugpy that lets you attach from an IDE to long-running processes.
  • Post-mortem debugging after exceptions to inspect locals and state.
  • Use cases include debugging gateway services, daemons, and scripts started in CI or production-like environments.

Quick Start

Attach a debugger to a Python process by enabling a debugpy listener on a port and connecting your IDE.

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 remotely from my IDE?

Remote Python debugging requires enabling a debugpy listener on a specific host and port, then attaching a compatible IDE to that endpoint. This allows you to connect to and inspect long-running processes like daemons or gateway services.

What is post-mortem debugging in Python and when do I need it?

Post-mortem debugging inspects application state after an exception occurs. It allows you to examine local variables and the exact program state at the moment of failure, which is essential for diagnosing errors in scripts started in CI or production-like environments.

Can I use pdb for interactive local debugging without an IDE?

Yes, pdb provides local interactive debugging directly in the terminal. It offers a REPL prompt for inline inspection and quick diagnosis without needing to configure a remote debugpy listener or attach an external IDE.

Does Python remote debugging with debugpy support the DAP protocol?

Yes, debugpy uses the Debug Adapter Protocol (DAP) for remote debugging. This allows compatible IDEs to attach to running Python processes, enabling interactive inspection and debugging across local, remote, and post-mortem scenarios.

What is the best way to debug a Python daemon started in a production-like environment?

The best way to debug a Python daemon is using debugpy remote debugging. You enable a debugpy listener on the running process and connect your IDE to inspect state, or use pdb for interactive local debugging if accessing the terminal directly.

When should I not use remote debugpy for Python debugging?

You should avoid remote debugpy when you need quick inline checks without environment configuration. In these cases, use pdb for local interactive debugging instead of setting up a DAP listener and attaching an IDE.