Describe the Bug
System Details
macOS: Apple Silicon M3 Pro
Cursor version: Latest (as of [insert today’s date])
Python version: 3.12.8 (in virtual environment)
Python extension: ms-python.debugpy-2025.6.0-darwin-arm64
Launch.json:
{
“version”: “0.2.0”,
“configurations”: [
{
“name”: “Python: Run file”,
“type”: “debugpy”,
“request”: “launch”,
“program”: “${file}”,
“console”: “integratedTerminal”
}
]
}
What Happens
The following command is triggered by Cursor:
/usr/bin/env /Users/thiagodardis/Documents/test/venv/bin/python
/Users/thiagodardis/.cursor/extensions/ms-python.debugpy-2025.6.0-darwin-arm64/bundled/libs/debugpy/launcher
53056 – /Users/thiagodardis/Documents/test/test.py
But:
- Nothing happens
- No terminal output appears
- No errors are thrown
- test.py is not executed at all
What I Tried (All Failed)
- Full deletion of ~/.cursor and ~/Library/Application Support/Cursor
- Reinstalling Cursor from scratch
- Reinstalling the Python extension via the built-in prompt
- Confirming the interpreter is selected correctly
- Creating a minimal project with only test.py
- Using “console”: “externalTerminal” or “integratedTerminal”
- Downgrading Python in the venv
- Running debugpy manually (works outside Cursor)
Additional Findings
-
The issue seems tied to the ms-python.debugpy-2025.6.0 extension downloaded by Cursor
-
Manually running
python -m debugpy --listen 5678 --wait-for-client test.py
works fine from terminal, but not from Cursor. -
Manually attaching Cursor to port 5678 also works, confirming the issue is with Cursor’s internal launcher usage, not with debugpy itself.
Please investigate the behavior of the launcher script bundled inside:
~/.cursor/extensions/ms-python.debugpy-2025.6.0-darwin-arm64/bundled/libs/debugpy/launcher
It appears to be broken or misconfigured, resulting in complete failure to run Python scripts via Cursor.
Temporary Workaround
Currently using VS Code instead — all functionality works there with the same launch.json and venv.
Would love to return to Cursor once this is resolved.
Steps to Reproduce
-
Create a simple file called test.py:
print(“hello world”) -
Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate -
Open the project in Cursor and select the venv interpreter.
-
Click Run.
Expected Behavior
Clicking “Run” or pressing F5 should:
- Run test.py
- Show output in terminal
- Allow breakpoint debugging
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.2.4 (Universal)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T16:55:16.443Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 23.3.0
Does this stop you from using Cursor
Yes - Cursor is unusable