squidfunk/pyo3-debug-vscode

How to debug in Windows?

开放

#1 创建于 2026年2月16日

 (4 条评论) (0 个反应) (0 位负责人)Python (4 个派生)github user discovery
good first issuehelp wanted

仓库指标

星标
 (17 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南