python-debugpy

Debug Python apps interactively with pdb REPL and remote debugpy (DAP).

11|Updated May 17, 2026
One-click install
npx skills add https://github.com/StarryCod/cogitum --skill python-debugpy-starrycod
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/StarryCod/cogitum/tree/main/cogitum/data/skills/software-development/python-debugpy
Command: npx skills add https://github.com/StarryCod/cogitum --skill python-debugpy-starrycod

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debugging Python applications can be cumbersome when relying solely on print statements; pdb provides an interactive local debugging experience, while debugpy enables remote, DAP-based debugging for long-running or daemonized processes.

Core Features & Use Cases

  • Local debugging with pdb REPL for quick inspection and stepping through code.
  • Remote debugging with debugpy to attach to running processes or launch with a debugging session.
  • Flexible workflows for debugging across threads and long-lived services, including attaching to daemons and testing code paths.

Quick Start

Attach a debugger to a Python process or run a script under pdb and/or debugpy 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 a long-running Python daemon process?

You can debug a long-running Python daemon by using debugpy to attach a remote debugging session via the DAP protocol. This allows you to inspect and control execution without restarting the service.

What is the best way to inspect state across multiple Python threads?

To inspect state across multiple threads, use debugpy remote debugging or the pdb REPL. These tools support flexible workflows for attaching to running processes and testing code paths across threads.

Can I use pdb for local Python debugging without extra dependencies?

Yes, pdb is a built-in Python module that provides an interactive local debugging experience with zero dependencies. It allows you to quickly inspect variables and step through code.

Does remote debugging with debugpy require exposing a specific port?

Yes, remote debugging with debugpy requires exposing a debugging port so the DAP client can attach to the running process. You can also insert breakpoints directly into the code as needed.

How do I attach a debugger to a running Python application?

You can attach a debugger to a running Python application by leveraging debugpy's DAP-based remote debugging. This enables you to attach to active daemons and inspect their state interactively.