Did you add a breakpoint?
debugpy.breakpoint()
import debugpy
# 5678 is the default attach port in the VS Code debug configurations. Unless a host and port are specified, host defaults to 127.0.0.1
debugpy.listen(5678)
print("Waiting for debugger attach")
debugpy.wait_for_client()
debugpy.breakpoint() #must have
print('break on this line')
Ref: https://code.visualstudio.com/docs/python/debugging
Answer from Tiana987642 on Stack OverflowPyPI
pypi.org › project › debugpy
debugpy · PyPI
Python :: 3.14 · Topic · Software Development :: Debuggers · Report project as malware · debugpy is an implementation of the Debug Adapter Protocol for Python. The source code and the issue tracker is hosted on GitHub.
» pip install debugpy
Published Jan 29, 2026
Version 1.8.20
Repository https://github.com/microsoft/debugpy
Homepage https://aka.ms/debugpy
GitHub
github.com › microsoft › debugpy
GitHub - microsoft/debugpy: An implementation of the Debug Adapter Protocol for Python · GitHub
Starred by 2.4K users
Forked by 192 users
Languages Python 92.8% | Cython 2.9% | Shell 1.8% | C++ 1.5% | Roff 0.8% | Perl 0.1%
Videos
r/neovim on Reddit: "Error while finding module specification for ...
08:58
Learn to Debug Python in VSCode (Say Goodbye to Print Statements) ...
11:36
Debugging Python with Visual Studio Code (VSCode) - YouTube
08:00
Debug Python inside Docker using debugpy and VSCode - YouTube
How To Debug Python Code In Visual Studio Code (VSCode) - YouTube
Which Python versions does Debugpy support?
Debugpy supports Python 3.6 and above.
debugpy.com
debugpy.com
Debugpy – Fast & Efficient Python Debugging Tool
What is Debugpy?
Debugpy is a Python debugger that integrates seamlessly with VS Code and other IDEs, allowing developers to debug Python scripts and applications efficiently.
debugpy.com
debugpy.com
Debugpy – Fast & Efficient Python Debugging Tool
Does Debugpy support multi-threaded debugging?
Yes, it can debug multi-threaded Python applications, but some features may have limitations.
debugpy.com
debugpy.com
Debugpy – Fast & Efficient Python Debugging Tool
Visual Studio Marketplace
marketplace.visualstudio.com › items
Python Debugger - Visual Studio Marketplace
Extension for Visual Studio Code - Python Debugger extension using debugpy.
Top answer 1 of 2
1
Did you add a breakpoint?
debugpy.breakpoint()
import debugpy
# 5678 is the default attach port in the VS Code debug configurations. Unless a host and port are specified, host defaults to 127.0.0.1
debugpy.listen(5678)
print("Waiting for debugger attach")
debugpy.wait_for_client()
debugpy.breakpoint() #must have
print('break on this line')
Ref: https://code.visualstudio.com/docs/python/debugging
2 of 2
-1
You can put a breakpoint in the Python source file before attach to the debugpy server, then it will hit and break back into VSCode after attach.
debugpy
debugpy.com
Debugpy – Fast & Efficient Python Debugging Tool
Debugpy – Fast & Efficient Python Debugging Tool
Debugpy is a lightweight Python debugger that helps developers inspect code, set breakpoints, and troubleshoot in real time with ease. #Debugpy
Arch Linux
archlinux.org › packages › extra › x86_64 › python-debugpy
Arch Linux - python-debugpy 1.8.20-1 (x86_64)
View the file list for python-debugpy · View the soname list for python-debugpy · Copyright © 2002-2026 Judd Vinet, Aaron Griffin and Levente Polyák. The Arch Linux name and logo are recognized trademarks. Some rights reserved.
PyPI
pypi.org › project › debugpy-run
debugpy-run · PyPI
If you have the VS Code Python extension installed then the full debugpy debugger is already bundled with it. You open a terminal window and run this utility to invoke your program with arguments. The utility finds the path where debugpy is installed and then runs it for the program and arguments ...
» pip install debugpy-run
NI
ni.com › docs › en-US › bundle › teststand › page › debug-python-modules.html
Debugging Python Modules - NI
Before you can step into Python modules, you must install the following software and configure the Python Adapter: Install the debugpy package in Python.
Anaconda.org
anaconda.org › conda-forge › debugpy
debugpy - conda-forge | Anaconda.org
January 29, 2026 - Install debugpy with Anaconda.org. An implementation of the Debug Adapter Protocol for Python
piwheels
piwheels.org › project › debugpy
piwheels - debugpy
February 11, 2026 - The piwheels project page for debugpy: An implementation of the Debug Adapter Protocol for Python
SageMath
doc.sagemath.org › html › en › reference › spkg › debugpy.html
debugpy: Implementation of the Debug Adapter Protocol for Python - Packages and Features
Implementation of the Debug Adapter Protocol for Python · https://pypi.org/project/debugpy/
GitHub
github.com › microsoft › debugpy › wiki › Ramping-up-on-debugpy
Ramping up on debugpy
An implementation of the Debug Adapter Protocol for Python - microsoft/debugpy
Author microsoft
GitHub
github.com › bulletmark › debugpy-run
GitHub - bulletmark/debugpy-run: Finds and runs debugpy for VS Code "remote attach" command line debugging. · GitHub
If you have the VS Code Python extension installed then the full debugpy debugger is already bundled with it. You open a terminal window and run this utility to invoke your program with arguments. The utility finds the path where debugpy is installed and then runs it for the program and arguments ...
Starred by 93 users
Forked by 3 users
Languages Python 95.2% | Just 4.8%
GitHub
github.com › microsoft › vscode-python-debugger
GitHub - microsoft/vscode-python-debugger: Python debugger (debugpy) extension for VS Code. · GitHub
A Visual Studio Code extension that supports Python debugging with debugpy. Python Debugger provides a seamless debugging experience by allowing you to set breakpoints, step through code, inspect variables, and perform other essential debugging ...
Starred by 166 users
Forked by 96 users
Languages TypeScript 97.8% | Python 1.9%