Title: VS Code Debugger Freezes When Using wrap_wsgi_app with debugpy · Issue #1908 · microsoft/debugpy · GitHub
Open Graph Title: VS Code Debugger Freezes When Using wrap_wsgi_app with debugpy · Issue #1908 · microsoft/debugpy
X Title: VS Code Debugger Freezes When Using wrap_wsgi_app with debugpy · Issue #1908 · microsoft/debugpy
Description: Environment data debugpy version: XXX (run import debugpy; print(debugpy.__version__) if uncertain) 1.8.13 OS and version: Python version (& distribution if applicable, e.g. Anaconda): Virtualenv Python: 3.13.4 Implementation: CPython Pl...
Open Graph Description: Environment data debugpy version: XXX (run import debugpy; print(debugpy.__version__) if uncertain) 1.8.13 OS and version: Python version (& distribution if applicable, e.g. Anaconda): Virtualenv P...
X Description: Environment data debugpy version: XXX (run import debugpy; print(debugpy.__version__) if uncertain) 1.8.13 OS and version: Python version (& distribution if applicable, e.g. Anaconda): Virtuale...
Opengraph URL: https://github.com/microsoft/debugpy/issues/1908
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"VS Code Debugger Freezes When Using wrap_wsgi_app with debugpy","articleBody":"## Environment data\n\n- debugpy version: XXX (run `import debugpy; print(debugpy.__version__)` if uncertain) `1.8.13`\n- OS and version:\n- Python version (& distribution if applicable, e.g. Anaconda):\n```\nVirtualenv\nPython: 3.13.4\nImplementation: CPython\nPlatform: linux\nOS: posix\nPython: 3.13.4\nPath: /home/tony/.pyenv/versions/3.13.4\nExecutable: /home/tony/.pyenv/versions/3.13.4/bin/python3.13\n```\n \n- Using VS Code\n\n## Actual behavior\n\n- VS Code debugger gets stuck once breakpoint is hit.\n- UI does not switch to source code line.\n- Debugger controls (Resume, Step Out, etc.) are unresponsive.\n- HTTP server hangs (no response).\n- However, the VS Code CALL STACK shows status: \"PAUSED\".\n \n## Expected behavior\n\n- Debugger pauses on the specified line and focuses editor on source code.\n- Debugger controls should remain fully functional.\n- Upon resuming, the HTTP server should respond correctly:\n```\nHTTP/1.0 200 OK\nContent-Length: 13\nContent-Type: text/plain\nDate: Wed, 11 Jun 2025 20:54:32 GMT\nServer: WSGIServer/0.2 CPython/3.13.4\n\nHello world!\n```\n\n## Steps to reproduce:\n\n1. Clone the sample project: https://github.com/totobest/python-debug-test\n2. Setup Python interpreter and install venv (poetry configuration is included)\n1. Launch the included \"wsgiref\" debug configuration.. \n1. Set a breakpoint on line 5 or 6 of main.py.. \n1. In a terminal, run: `curl -i localhost:8000`\n\n## Additional Context\n\n- Issue occurs consistently across Python versions 3.9 to 3.13.\n- Tested across multiple Python Debugger extension versions (2024.x to latest).\n- Works as expected when no breakpoint is set. \n- Removing the call to `wrap_wsgi_app(app)` (line 8) resolves the issue entirely.\n\n","author":{"url":"https://github.com/la-force-tranquille","@type":"Person","name":"la-force-tranquille"},"datePublished":"2025-06-11T21:04:16Z","url":"https://github.com/microsoft/debugpy/issues/1908"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:78607b2f-f0f2-7c64-1f0b-c9a21c247625 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AC2:6044B:B5C999:EF81F5:6AFE8622 |
| html-safe-nonce | 41ca04f0960451fa2ed081ed3cde2b17d2bee42d4fcf131c6418b71ddcf43269 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUMyOjYwNDRCOkI1Qzk5OTpFRjgxRjU6NkFGRTg2MjIiLCJ2aXNpdG9yX2lkIjoiODY2NzY2OTEyNTI4MDk5MDc1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 727e8425da71375ad7cf5d253a5216331a5a5f2afb4994b97cfcb361016a0ee3 |
| hovercard-subject-tag | issue:3138111131 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/debugpy/1908/issue_layout |
| twitter:image | https://opengraph.githubassets.com/efc5cdfec14fa2b21a9498e13698b51aff793749d8cd845528ad0795e95c6475/microsoft/debugpy/issues/1908 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/efc5cdfec14fa2b21a9498e13698b51aff793749d8cd845528ad0795e95c6475/microsoft/debugpy/issues/1908 |
| og:image:alt | Environment data debugpy version: XXX (run import debugpy; print(debugpy.__version__) if uncertain) 1.8.13 OS and version: Python version (& distribution if applicable, e.g. Anaconda): Virtualenv P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | la-force-tranquille |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/debugpy git https://github.com/microsoft/debugpy.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 234187391 |
| octolytics-dimension-repository_nwo | microsoft/debugpy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 234187391 |
| octolytics-dimension-repository_network_root_nwo | microsoft/debugpy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width