Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

VS Code Debugger Freezes When Using wrap_wsgi_app with debugpy

Offen
#1,908 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
38/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python, vscode
Bereich
devtools

Rechercherichtung

Beginne mit der main.py des Beispielprojekts, insbesondere mit den Zeilen 5, 6 und 8, und starte deren enthaltene „wsgiref“-Debugkonfiguration unter Python 3.13. Reproduziere das Einfrieren am Breakpoint mit curl und verfolge anschließend die Interaktion zwischen wrap_wsgi_app(app) und debugpy. Als erledigt gilt die Aufgabe, wenn Breakpoints die Quellzeile fokussieren, die Debugger-Steuerung reagiert und die HTTP-Anfrage nach dem Fortsetzen abgeschlossen wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Platform:   linux
OS:         posix
Python:     3.13.4
Path:       /home/tony/.pyenv/versions/3.13.4
Executable: /home/tony/.pyenv/versions/3.13.4/bin/python3.13
  • Using VS Code

Actual behavior

  • VS Code debugger gets stuck once breakpoint is hit.
  • UI does not switch to source code line.
  • Debugger controls (Resume, Step Out, etc.) are unresponsive.
  • HTTP server hangs (no response).
  • However, the VS Code CALL STACK shows status: "PAUSED".

Expected behavior

  • Debugger pauses on the specified line and focuses editor on source code.
  • Debugger controls should remain fully functional.
  • Upon resuming, the HTTP server should respond correctly:
HTTP/1.0 200 OK
Content-Length: 13
Content-Type: text/plain
Date: Wed, 11 Jun 2025 20:54:32 GMT
Server: WSGIServer/0.2 CPython/3.13.4

Hello world!

Steps to reproduce:

  1. Clone the sample project: https://github.com/totobest/python-debug-test
  2. Setup Python interpreter and install venv (poetry configuration is included)
  3. Launch the included "wsgiref" debug configuration..
  4. Set a breakpoint on line 5 or 6 of main.py..
  5. In a terminal, run: curl -i localhost:8000

Additional Context

  • Issue occurs consistently across Python versions 3.9 to 3.13.
  • Tested across multiple Python Debugger extension versions (2024.x to latest).
  • Works as expected when no breakpoint is set.
  • Removing the call to wrap_wsgi_app(app) (line 8) resolves the issue entirely.
Vorherrschende Sprache
Python
Sterne
2.5k
Forks
202
Ø Merge
5 T. 1 Std.
Gemergte PRs (30 T.)
1

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoft/debugpy

Alle Issues in microsoft/debugpy

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.