cyberneticlibrary

Debug Python with breakpoints and pdb

python-debugpyskillsetup L1377,536
openclaw/openclaw
What it does

Debug Python code remotely or interactively in IDE

Best for

Debugging long-running Python services or scripts when print-statement debugging won't suffice

Inputs
  • · Python script path
  • · optional: breakpoint line numbers
  • · optional: IDE port
Outputs
  • · debugger attached
  • · variable inspection available
  • · execution paused at breakpoints
Requires
  • · Python 3.6+
  • · IDE with debugpy support (VS Code, PyCharm)
Preconditions

Python script runnable; IDE configured for remote debugging; network accessible

Failure modes
  • · Port binding fails if already in use
  • · Breakpoints ineffective if code optimized
Trust signals
  • · Official Microsoft debugpy library
  • · Supports both local and remote debugging