ipython / ipython/ipykernel

cannot stop debugging session when there is long running evaluate request

Offen
#1,245 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
734
Forks
412
Ø Merge
1 T. 5 Std.
Gemergte PRs (30 T.)
8

Beschreibung

When you are in a debug session, if you run a long running evaluate request (e.g. sleep operations), the thread gets blocked, you cannot terminate the debug session or issue other evaluate request until the time runs out.
(you could still interrupt the kernel thought)

There seems to be an environment config in `debugpy` which will set a timeout on the long evaluation request `PYDEVD_INTERRUPT_THREAD_TIMEOUT`. I think vscode by default interrupt after 3 seconds
[src](https://github.com/microsoft/debugpy/blob/09b5af0bb730e2707ec3bbc14c509523eca116c0/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_constants.py#L344
)

https://github.com/ipython/ipykernel/assets/112444017/458ac247-0f00-4dcd-a59e-81709a39f3ce

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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