python-debugpy

Debug Python code locally or remotely using pdb and debugpy protocols.

Updated May 25, 2026
One-click install
npx skills add https://github.com/webdevtodayjason/subctl-rust --skill python-debugpy-webdevtodayjason
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/webdevtodayjason/subctl-rust/tree/main/skills/python-debugpy
Command: npx skills add https://github.com/webdevtodayjason/subctl-rust --skill python-debugpy-webdevtodayjason

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python, debugpy, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill offers a streamlined approach to debugging Python code using pdb and debugpy (DAP), making it easier to identify and fix bugs in both local and remote environments.

Core Features & Use Cases

  • Local Interactive Debugging: Uses pdb to debug Python code interactively, step-by-step.
  • Remote Debugging: Attach to running processes using debugpy for headless debugging.
  • Post-mortem Analysis: Inspect local variables at the crash site of a production exception.
  • Use Case: If a test fails, use the Skill to step through the code and inspect the state at each point.

Quick Start

Start debugging your Python code with debugpy listen 127.0.0.1:5678 and connect from a client such as VS Code or a terminal script.

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 code remotely using debugpy?

To debug Python code remotely, run debugpy listen 127.0.0.1:5678 in your environment and connect a DAP client like VS Code to inspect variables and step through code.

What is the difference between pdb and debugpy for Python debugging?

pdb provides local interactive step-by-step debugging in the terminal, while debugpy implements the DAP protocol to support remote debugging and headless attachment to running processes.

Can I inspect variables at the crash site of a production Python exception?

Yes, you can perform post-mortem analysis to inspect local variables at the crash site of a production exception, helping you identify exactly what state caused the failure.

Do I need Python and debugpy installed to set breakpoints and step through code?

Yes, this Skill requires both Python and debugpy to be installed in your environment to support setting breakpoints, inspecting variables, and stepping through code.

How do I step through a failing Python test to inspect state at each point?

Use local interactive debugging with pdb to step through the failing test code, allowing you to inspect the program state and variables at each execution point.