squidfunk/pyo3-debug-vscode

How to debug in Windows?

Offen

#1 geöffnet am 16.02.2026

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (4 Forks)github user discovery
good first issuehelp wanted

Repository-Metriken

Stars
 (17 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

{
  "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