python-debugpy

Debug Python locally with pdb and remotely via debugpy.

1|Updated May 10, 2026
One-click install
npx skills add https://github.com/Dq666dinger/my-hermes --skill python-debugpy-dq666dinger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/Dq666dinger/my-hermes/tree/main/skills/software-development/python-debugpy
Command: npx skills add https://github.com/Dq666dinger/my-hermes --skill python-debugpy-dq666dinger

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python debugging can be slow and opaque without the right tools; this Skill combines a local pdb REPL with remote debugging via debugpy to give you flexible, in-context debugging options.

Core Features & Use Cases

  • Local debugging with pdb: interactive REPL at breakpoints to inspect state and mutate variables.
  • Remote debugging with debugpy: attach to a running process or start with a listen port for headless debugging.
  • Post-mortem debugging: inspect locals from exception traces after a crash.
  • Multiple workflows: source-edit breakpoint insertion, launching scripts with pdb, or attaching to a live process.

Quick Start

Insert a breakpoint() or configure debugpy, then connect your debugger to begin stepping through Python.

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?

Remote debugging for a running Python process uses debugpy to attach to the live application. You configure debugpy to listen on a port, then connect your debugger to begin stepping through the code and inspecting state.

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

Post-mortem debugging lets you inspect local variables from exception traces after a Python application crashes. It is needed when you want to analyze the exact program state at the moment an error occurred to find the root cause.

Can I use pdb for interactive breakpoints in my Python script?

Yes, pdb provides an interactive REPL at breakpoints to inspect state and mutate variables locally. You can insert a breakpoint() directly into your source code or launch scripts with pdb to start stepping through execution.

Does this Python debugging workflow work for headless production-like environments?

Yes, debugpy enables remote debugging for headless environments by starting with a listen port or attaching to running processes. This allows in-context debugging of Python applications deployed in production-like setups.

What is the best way to inspect local variables after a Python crash?

The best way to inspect locals after a Python crash is post-mortem debugging. By using pdb or debugpy, you can load the exception trace and interactively examine the local variables at the exact point where the failure occurred.

Do I need to install debugpy separately for remote Python debugging?

Yes, remote debugging requires the debugpy package to enable in-process and remote connections. Standard Python pdb is sufficient for local REPL debugging, but debugpy must be installed to attach to running processes or listen on ports.