python-debugger

Set breakpoints and inspect runtime state in Python scripts.

6|1|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/1cFE/agentic-mbse --skill python-debugger-1cfe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-debugger
Source: https://github.com/1cFE/agentic-mbse/tree/main/claude/skills/python-debugger
Command: npx skills add https://github.com/1cFE/agentic-mbse --skill python-debugger-1cfe

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Programmatic Python debugging with breakpoints, state inspection, and stack traces. Use when debugging Python code that requires inspecting variable values at specific lines, understanding program state at runtime, capturing exception context, or when print-debugging is insufficient. Triggers on requests to "set a breakpoint", "inspect variables at line X", "debug this Python script", "capture the state when this crashes", or "trace execution".

Core Features & Use Cases

  • Breakpoint-driven state capture for Python scripts.
  • Non-interactive debugging suitable for automation and Claude workflows.
  • Trace exceptions and capture full stack traces with locals.

Quick Start

Run python scripts/claude_debugger.py target.py --breakpoints 10,25 --trace-exceptions to attach breakpoints and capture state.

Frequently Asked Questions about python-debugger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a Python script programmatically without an interactive session?

Programmatic Python debugging automates runtime state inspection by setting breakpoints and capturing stack traces in a non-interactive workflow, outputting results as JSON for automation.

How can I inspect Python variables at specific lines during execution?

You can inspect Python variables at specific lines by setting line-based breakpoints, which capture and output the runtime state and locals when the execution reaches those targeted lines.

What is the best way to capture Python exception context and stack traces?

Tracing exceptions captures full stack traces with local variable context by configuring the debugger to automatically halt on errors and serialize the runtime state to JSON output.

Can I use this Python debugger for automated workflows without terminal interaction?

Yes, this non-interactive Python debugger is designed for automation and Claude workflows, executing target scripts and capturing state without requiring manual terminal interaction.

When should I use programmatic debugging instead of print statements?

Programmatic debugging replaces print statements when you need to inspect variable values at specific lines, understand complex runtime program state, or capture full exception stack traces with locals.

Does the debugger support tracing function calls alongside breakpoints?

Yes, the debugger supports both setting targeted breakpoints for state capture and enabling function tracing to monitor execution flow within the Python script.