squidfunk/pyo3-debug-vscode

How to debug in Windows?

Open

#1 opened on Feb 16, 2026

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Python (4 forks)github user discovery
good first issuehelp wanted

Repository metrics

Stars
 (17 stars)
PR merge metrics
 (PR metrics pending)

Description

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Python: Debug Script",
      "type": "debugpy",
      "request": "launch",
      "program": "${file}",
      "python": "${workspaceFolder}/.venv/Scripts/python.exe",
      "console": "integratedTerminal",
      "justMyCode": false,
      "stopOnEntry": true,
      "presentation": {
        "hidden": true,
      },
    },
    {
      "name": "Python: Debug Test",
      "type": "debugpy",
      "request": "launch",
      "module": "pytest",
      "args": ["-v", "${file}"],
      "python": "${workspaceFolder}/.venv/Scripts/python.exe",
      "console": "integratedTerminal",
      "justMyCode": false,
      "stopOnEntry": true,
      "presentation": {
        "hidden": true,
      },
    },
    {
      "name": "LLDB: Attach",
      "type": "lldb",
      "request": "attach",
      "program": "${workspaceFolder}/.venv/Scripts/python.exe",
      "preLaunchTask": "Build Rust Extension",
      "waitFor": true,
      "presentation": {
        "hidden": true,
      },
    },
  ],
  "compounds": [
    {
      "name": "Debug Script",
      "configurations": [
        "Python: Debug Script",
        "LLDB: Attach"
      ],
      "preLaunchTask": "Build Rust Extension",
    },
    {
      "name": "Debug Test",
      "configurations": [
        "Python: Debug Test",
        "LLDB: Attach"
      ],
      "preLaunchTask": "Build Rust Extension",
    }
  ]
}

Contributor guide