Python debug is broken with Remote SSH session

Describe the Bug

In recent updates (~1 month) Python debugging in remote SSH session is broken.

I can launch the debugging session but I cannot do anything in the debugging session including pause, resume, breakpoints.

It seems to that Cursor cannot catch debugpy session. And Call Stack seems to ignore my workspace folder Python path configuration. I set venv for python path but Call Stack seems to resolve to ~/.local.

Everything works fine in local Cursor though.

I recently installed Anysphere Python.

Steps to Reproduce

Here is my launch.json for debugging

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Debug Tests",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false
        }
    ]
}

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.7
VSCode Version: 1.96.2
Commit: 7111807980fa9c93aedd455ffa44b682c0dc1350
Date: 2025-07-01T07:26:02.358Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Additional Information

My local machine is macOS, but the remote server is Ubuntu.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor