python-debugpy

Debug Python applications locally with pdb and remotely via debugpy.

13|3|Updated May 12, 2026
One-click install
npx skills add https://github.com/kevinnft/ai-agent-skills --skill python-debugpy-kevinnft
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/kevinnft/ai-agent-skills/tree/main/skills/software-development/python-debugpy
Command: npx skills add https://github.com/kevinnft/ai-agent-skills --skill python-debugpy-kevinnft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debug Python applications by providing local debugging with pdb and remote debugging via debugpy, enabling quick inspection and issue diagnosis across environments.

Core Features & Use Cases

  • Local debugging with breakpoint() and pdb for interactive sessions.
  • Remote debugging with debugpy for headless or long-running processes.
  • Post-mortem debugging after exceptions to inspect locals and stack traces.
  • Multiple workflow patterns including attach and launch scenarios for development, testing, and production gateways.

Quick Start

Run your Python script with pdb or attach debugpy to a running process to begin 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 Python scripts locally using pdb?▼

Debug Python scripts locally by invoking pdb to set breakpoints, inspect variables, and step through code interactively. It provides an interactive REPL for diagnosing issues in short scripts and test runs quickly.

Can I attach a debugger to a running Python process for remote debugging?▼

Yes, remote debugging allows you to attach debugpy to a running Python process. This enables interactive inspection of long-running services or headless applications without restarting the application.

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

Post-mortem debugging inspects an application state immediately after an exception occurs. You need it to examine local variables and stack traces at the exact point of failure to diagnose unhandled crashes.

Does this debugging approach work for long-running services and tests?▼

Yes, this approach works for long-running services and tests by supporting multiple workflow patterns. You can launch or attach to Python processes across development, testing, and production environments.

What is the difference between local pdb and remote debugpy workflows?▼

Local pdb workflows provide interactive REPL sessions for short scripts, while remote debugpy workflows attach to headless or long-running processes. Both manage breakpoints but serve different execution environments.

How do I manage breakpoints when debugging a Python application?▼

Manage breakpoints by setting them in your Python application code using breakpoint(). Both local pdb and remote debugpy workflows support adding, removing, and triggering breakpoints for interactive inspection.