python-debugpy

Debug Python applications with pdb REPL and remote debugpy attachment.

78|16|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/sheawinkler/hermes-agent-ultra --skill python-debugpy-sheawinkler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/sheawinkler/hermes-agent-ultra/tree/main/skills/software-development/python-debugpy
Command: npx skills add https://github.com/sheawinkler/hermes-agent-ultra --skill python-debugpy-sheawinkler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debugging Python applications locally and remotely using pdb and debugpy, simplifying breakpoint-based diagnosis and live debugging across processes.

Core Features & Use Cases

  • Local debugging with pdb REPL for quick inspection.
  • Remote debugging via debugpy for attach-on-running-process scenarios.
  • Post-mortem debugging to inspect locals at crash points.
  • Works with long-running gateways, daemons, and subprocesses to pinpoint issues.

Quick Start

Install debugpy, then attach a debugger or insert a breakpoint to start debugging.

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 long-running Python service without restarting it?

Remote debugging with debugpy allows you to attach to a running Python process without restarting it. This is ideal for long-running services or daemons where pausing execution helps diagnose issues in real-time.

What is post-mortem debugging in Python and how does it work?

Post-mortem debugging allows you to inspect local variables and the call stack at the exact moment a Python application crashes. Using pdb or debugpy, you can pause execution at the crash point to diagnose unhandled exceptions.

Can I use pdb for local Python script debugging?

Yes, pdb provides a REPL for local Python script debugging, enabling you to insert breakpoints and step through code. It supports direct script execution for quick inspection and diagnosis.

Do I need debugpy installed to debug Python applications remotely?

Yes, remote debugging requires debugpy to be installed in your Python environment. You need it to attach a debugger to running processes, long-running services, or subprocesses for live diagnosis.

How do I set breakpoints in a Python subprocess for diagnosis?

You can set breakpoints in Python subprocesses using debugpy for remote debugging attachment. This enables pausing execution and inspecting variables across processes to pinpoint issues in complex applications.

What is the best way to inspect locals at a crash point in Python?

The best way to inspect locals at a crash point is post-mortem debugging using pdb. It drops you into an interactive REPL at the exact failure location, allowing immediate inspection of local variables and application state.