squidfunk/pyo3-debug-vscode

How to debug in Windows?

Aperta

#1 aperta il 16 feb 2026

 (4 commenti) (0 reazioni) (0 assegnatari)Python (4 fork)github user discovery
good first issuehelp wanted

Metriche repository

Star
 (17 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

{
  "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",
    }
  ]
}

Guida contributor