{"id":27734504,"url":"https://github.com/squidfunk/pyo3-debug-vscode","last_synced_at":"2025-07-11T22:01:39.639Z","repository":{"id":286187036,"uuid":"960649342","full_name":"squidfunk/pyo3-debug-vscode","owner":"squidfunk","description":"Debugging PyO3 with Visual Studio Code","archived":false,"fork":false,"pushed_at":"2025-04-05T16:48:00.000Z","size":2977,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T13:11:50.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/squidfunk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-04T19:59:57.000Z","updated_at":"2025-04-22T09:00:23.000Z","dependencies_parsed_at":"2025-04-04T21:24:35.732Z","dependency_job_id":"64d1f711-5ad8-4b74-a9f2-ec0619985290","html_url":"https://github.com/squidfunk/pyo3-debug-vscode","commit_stats":null,"previous_names":["squidfunk/pyo3-debug-vscode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/squidfunk/pyo3-debug-vscode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidfunk%2Fpyo3-debug-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidfunk%2Fpyo3-debug-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidfunk%2Fpyo3-debug-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidfunk%2Fpyo3-debug-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squidfunk","download_url":"https://codeload.github.com/squidfunk/pyo3-debug-vscode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidfunk%2Fpyo3-debug-vscode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264904249,"owners_count":23681163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-28T13:11:47.495Z","updated_at":"2025-07-11T22:01:39.596Z","avatar_url":"https://github.com/squidfunk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Debugging PyO3 with Visual Studio Code\n\nThis is a sample project that shows how to debug [PyO3] extension using [Visual\nStudio Code]. It allows to set breakpoints in Python sources and tests, as well\nas in Rust sources, and step through Python and Rust code simultaneously. This\nwas tricky to set up, so I thought I'd share my configuration.\n\n![](.github/demo.gif)\n\n  [PyO3]: https://pyo3.rs\n  [Visual Studio Code]: https://code.visualstudio.com/\n\n## Prerequisites\n\nThis project assumes you have a Python and Rust toolchain up and running. In\nVisual Studio Code, make sure you have the following extensions installed:\n\n- [CodeLLDB]\n- [Rust Analyzer]\n\n  [CodeLLDB]: https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb\n  [Rust Analyzer]: https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer\n\n## Installation\n\nCreate a virtual environment and install the required packages:\n\n```\npython -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\n```\n\n## Usage\n\nThere are two launch configurations:\n\n1. __Debug Script__: Debug the current active Python script. This is the most\n   common use case. You can set breakpoints in Python code and step through it.\n\n2. __Debug Test__: Debug the current active Python test. It assumes that you are\n   using [pytest] as your test runner. You can set breakpoints in Python code\n   and step through it.\n\n  [pytest]: https://docs.pytest.org/en/stable/\n\n## License\n\n__MIT License__\n\nCopyright (c) 2025 Martin Donath\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquidfunk%2Fpyo3-debug-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquidfunk%2Fpyo3-debug-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquidfunk%2Fpyo3-debug-vscode/lists"}