python-debugpy

Debug Python code with pdb breakpoints and remote debugpy attachment.

Updated Jun 17, 2026
One-click install
npx skills add https://github.com/anilcan-kara/nozich-agent --skill python-debugpy-anilcan-kara
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/anilcan-kara/nozich-agent/tree/main/skills/software-development/python-debugpy
Command: npx skills add https://github.com/anilcan-kara/nozich-agent --skill python-debugpy-anilcan-kara

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debug Python code by combining pdb interactive debugging with remote debugging via debugpy.

Core Features & Use Cases

  • Local pdb debugging for quick inspection with breakpoint and interact capabilities.
  • Remote debugging via debugpy for headless or long-running processes, including attaching to existing Python processes or launching with --listen, and supporting post-mortem debugging.
  • Use Case: Investigate a failing long-running service by attaching a debugger to inspect state without restarting.

Quick Start

Attach a debugger to a running Python process using debugpy by listening on a port and connecting with a client.

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 without restarting it?

Remote Python debugging allows you to attach to an existing process without restarting it. You use debugpy.listen to open a port on the running process and connect a client to inspect the state and investigate failures.

What's the best way to combine pdb breakpoints with remote debugging in Python?

Combining pdb with remote debugging in Python involves using debugpy to listen for a client connection while inserting pdb breakpoints to interactively inspect the running code during your session.

Can I use post-mortem debugging to inspect a Python process after it crashes?

Post-mortem debugging in Python lets you inspect state after a failure. By attaching debugpy to the process or launching with --listen, you can investigate the context of the crash without needing a restart.

Do I need to install debugpy separately to use remote Python debugging?

Yes, remote Python debugging with this approach requires installing the debugpy package. You use its listen and wait-for-client functions to establish the connection before interacting with pdb breakpoints.

How do I debug a headless or long-running Python service?

Debugging a headless or long-running Python service uses remote debugging via debugpy. You attach a debugger to the running process by listening on a port, enabling state inspection without interrupting the service lifecycle.