python-debugpy

Provides local pdb debugging and remote debugpy attachment for Python issues.

12|2|Updated Feb 2, 2020
One-click install
npx skills add https://github.com/servitola/dotfiles --skill python-debugpy-servitola
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/servitola/dotfiles/tree/main/claude-code/skills/python-debugpy
Command: npx skills add https://github.com/servitola/dotfiles --skill python-debugpy-servitola

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Debug Python applications by using pdb for local, interactive debugging and debugpy for remote DAP attachments.

Core Features & Use Cases

  • Local debugging with pdb via breakpoint() and python -m pdb
  • Remote debugging with debugpy to attach from an IDE to a running process
  • Post-mortem debugging for exceptions using pdb.post_mortem

Quick Start

Run your Python script under pdb for local debugging or enable debugpy to listen on a port and attach from your IDE

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 from my IDE?

Remote Python debugging uses debugpy to listen on a port for an external IDE connection via the Debug Adapter Protocol. You attach your IDE to the running process to diagnose and fix issues in long-running applications.

What is the best way to debug Python exceptions after they occur?

Post-mortem debugging inspects Python exceptions after they occur by invoking pdb.post_mortem. This drops you into the interactive debugger at the exact failure point to diagnose and fix the program state.

Can I use pdb for local Python debugging without installing extra packages?

Yes, local Python debugging with pdb works without extra packages because it is built-in. You run python -m pdb or insert the breakpoint() function directly into your script for interactive troubleshooting.

Does this Python debugging approach support both local and remote environments?

Yes, Python debugging supports local and remote environments using pdb and debugpy. You get in-process interactive debugging for local development and external IDE attachments for remote troubleshooting.

Do I need the debugpy package for standard Python breakpoint debugging?

No, standard Python breakpoint debugging does not require the debugpy package. Local interactive debugging uses the built-in pdb module, while debugpy is only required for remote IDE attachments.