python-debugpy

Attach debugpy to Python processes for remote DAP debugging.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires debugpy, remote-pdb.

What problem does it solve?

This skill resolves complex software bugs by providing a comprehensive toolkit for interactive inspection, remote debugging, and post-mortem analysis of Python applications.

Core Features & Use Cases

  • Interactive Debugging: Use breakpoint() for immediate, local REPL access to inspect variables and state.
  • Remote/DAP Debugging: Utilize debugpy to attach to long-running processes or headless services for deep inspection.
  • Post-Mortem Analysis: Capture and inspect the state of an application at the exact moment an exception occurs.

Quick Start

Use the python-debugpy skill to attach a debugger to the running process with PID 1234 on port 5678.

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 headless Python process remotely?

To attach a debugger to a running Python process, use debugpy to listen on a specific port for a DAP-compliant client. This enables remote inspection of long-running or headless services by attaching to the target PID.

What is post-mortem debugging in Python?

Post-mortem debugging in Python captures and inspects the application state at the exact moment an exception occurs. This allows you to analyze the unhandled error context and variable state directly after a crash.

How do I set breakpoints for local interactive inspection in Python?

For local interactive inspection in Python, use the built-in breakpoint() function to drop into a pdb REPL. This provides immediate local access to inspect variables and application state during execution.

Does this debugging approach work with DAP-compliant clients?

Yes, remote debugging works with DAP-compliant clients by utilizing debugpy for remote attachment. It supports process introspection and terminal-based debugging across various execution environments.

What packages do I need for remote and interactive Python debugging?

You need the debugpy and remote-pdb packages to facilitate remote attachment and terminal-based debugging. These dependencies enable process introspection, local interactive inspection, and post-mortem exception analysis.