Python debugging with debugpy for Visual Studio Code
open sourceMITfree
Python Debugger is Microsoft's Visual Studio Code extension for debugging Python with debugpy: set breakpoints, step through code, inspect variables and debug in the terminal. It was split out of the Python extension, which offers to install it, so debugging keeps working across Python versions, and it ships platform-specific builds of debugpy. It activates when you open a Python file and supports every actively supported Python version; older extension versions remain for Python 2.7 and early 3.x.
Problems it solves
- debug a Python script in VS Code with breakpoints
- step through my Python code and inspect variables in the editor
- set up the Python debugger in VS Code
- debug an older Python version project in VS Code
Features
- breakpoints, stepping and variable inspection with debugpy
- platform-specific debugpy builds
- Debug in Terminal command for a single Python file
- older extension versions for Python 2.7 and early 3.x projects
Alternatives
The same job
These do what Python Debugger does.
- Lightrun Live debugging and runtime context for production code, plus an AI SRE agent
