python-debugpy

Combine pdb and debugpy to inspect and control Python execution.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python debugging is often fragmented between local pdb exploration and remote debugging for headless processes; this Skill combines pdb REPL with debugpy remote capability to provide a unified debugging workflow.

Core Features & Use Cases

  • Local debugging with pdb using breakpoint() and the interactive prompt.
  • Remote debugging with debugpy to attach to running processes or launch in listening mode.
  • Post-mortem debugging with pdb.post_mortem to inspect locals after exceptions.
  • Flexible workflows including inserting breakpoints, launching under pdb, or attaching to existing processes.
  • Multi-thread and remote debugging support via debugpy.

Quick Start

Attach a debugger to a running Python process using debugpy and begin stepping through code.

Frequently Asked Questions about python-debugpy

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

FAQPage Schema
How do I attach a debugger to a running Python process for remote debugging?

Remote debugging uses debugpy to attach to running processes or launch in listening mode, enabling live introspection and breakpoints. This allows you to step through code and inspect locals in headless or long-running services.

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

Post-mortem debugging inspects locals after an exception. Using pdb.post_mortem, it drops into an interactive prompt at the point of failure, allowing you to analyze the program state without re-running the process.

Can I use pdb and debugpy together for Python debugging?

Yes, combining pdb local REPL with debugpy remote capability provides a unified debugging workflow. You can insert breakpoints, launch under pdb locally, or attach debugpy to existing processes for multi-thread support.

How do I set breakpoints and step through Python code locally?

Local debugging uses pdb via the breakpoint() function and an interactive prompt. You can step through code, inspect locals, and control execution flow directly within your built-in Python environment.

Do I need to install debugpy separately for Python debugging?

Yes, debugpy must be installed in your Python environment, while pdb is built-in. This setup supports attaching to processes, setting breakpoints, and handling remote attach scenarios for live introspection.