GitHub
github.com › microsoft › debugpy
GitHub - microsoft/debugpy: An implementation of the Debug Adapter Protocol for Python · GitHub
An implementation of the Debug Adapter Protocol for Python - microsoft/debugpy
Starred by 2.4K users
Forked by 191 users
Languages Python 92.8% | Cython 2.9% | Shell 1.8% | C++ 1.5% | Roff 0.8% | Perl 0.1%
PyPI
pypi.org › project › debugpy
debugpy · PyPI
» pip install debugpy
Published Jan 29, 2026
Version 1.8.20
Repository https://github.com/microsoft/debugpy
Homepage https://aka.ms/debugpy
Trying to understand debugpy
Debugpy was written by Microsoft so they intended for you to use it with vscode but you can use it another IDE like pycharm. You need to have the configs set to attach on the matching host and port. Here are the docs with using the debugpy cli with vscode. It’s much easier to use the gui in vscode to run the commands for you instead. Where the request config option would represent the —listen or —connect flag when you click the run debug button. More on reddit.com
debugpy --pid flag fails to start the debug server in attached process
I noticed that VSCode times out when I try to debug a process by its pid. I thought it must be using the debugpy --pid flag to start the debug server, and noticed it was failing to call dlopen() an... More on github.com
Python Remote Debugging Not working with 3.9.3
Launch the script with debugpy: python3 -mdebugpy --listen 5678 test.py. More on github.com
Topics tagged extensions
Topics tagged extensions More on forum.cursor.com
Videos
08:58
Learn to Debug Python in VSCode (Say Goodbye to Print Statements) ...
08:00
Debug Python inside Docker using debugpy and VSCode - YouTube
05:40
Learn How To Debug Your Python Container In Minutes! - YouTube
11:36
Debugging Python with Visual Studio Code (VSCode) - YouTube
07:02
Stop Using print(): Learn the VSCode Debugger - YouTube
09:20
YouTube
Visual Studio Marketplace
marketplace.visualstudio.com › items
Python Debugger - Visual Studio Marketplace
Extension for Visual Studio Code - Python Debugger extension using debugpy.
Reddit
reddit.com › r/learnpython › trying to understand debugpy
r/learnpython on Reddit: Trying to understand debugpy
September 17, 2025 -
From what I gather from the documentation it does not seem that debugpy includes a DAP client implementation, only the server portion, correct?
So what does the --connect option in debugpy actually do?
The documentation says:
--connect
Tells the debug server to connect to a client that is waiting for incoming connections at the specified address and port. The corresponding debug configuration should use "listen" with matching "host" and "port" entries.
It almost seems like this should provide a client to the server, but from trying it out in the command line, I cannot see that this is the case.
Top answer 1 of 2
1
Debugpy was written by Microsoft so they intended for you to use it with vscode but you can use it another IDE like pycharm. You need to have the configs set to attach on the matching host and port. Here are the docs with using the debugpy cli with vscode. It’s much easier to use the gui in vscode to run the commands for you instead. Where the request config option would represent the —listen or —connect flag when you click the run debug button.
2 of 2
1
Have you tried asking an llm about it?
GitHub
github.com › microsoft › debugpy › issues
microsoft/debugpy
Author microsoft
JetBrains
youtrack.jetbrains.com › projects › PY › issues › PY-63403 › Support-debugpy
Support debugpy : PY-63403
We cannot provide a description for this page right now
GitHub
github.com › microsoft › debugpy › issues › 762
debugpy --pid flag fails to start the debug server in attached process · Issue #762 · microsoft/debugpy
October 18, 2021 - I noticed that VSCode times out when I try to debug a process by its pid. I thought it must be using the debugpy --pid flag to start the debug server, and noticed it was failing to call dlopen() and then DoAttach(). $ python3 -m debugpy ...
Author OEP
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 › microsoft › debugpy › issues › 105
debugpy over ssh question · Issue #105 · microsoft/debugpy
April 8, 2020 - Recently the ms-python vscode extension began using debugpy over the older ptvsd. With this, it's using debugpy.launcher rather than the extensions older ptvsd_launcher.py script. I have a setu...
Author ddurham2
GitHub
github.com › microsoft › debugpy › issues › 1726
debugpy not supporting Python 3.7 and failing with import ...
October 2, 2024 - Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/glue_user/.vscode-server/extensions/ms-python.debugpy-2024.12.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 69, in <module> from debugpy.server import cli File "/home/glue_user/.vscode-server/extensions/ms-python.debugpy-2024.12.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/
Author DikshaMakkar