ipython / ipython/ipykernel

When importing `debugpy`, `PYDEVD_IPYTHON_COMPATIBLE_DEBUGGING=1` should be set

Offen
#1,004 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

A new flag is available in `pydevd` which allows a user to step into library code without getting inside of IPython internals while doing so.

To make use of this, `PYDEVD_IPYTHON_COMPATIBLE_DEBUGGING` must be set to `1` in the `os.environ` prior to importing `debugpy`.

See: https://github.com/microsoft/debugpy/issues/869 for more information.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by locating the ipykernel entry point that imports debugpy and review how os.environ is handled before that import. Use the pydevd flag described in the issue, and consider the change complete when importing debugpy sets the requested environment value beforehand and the relevant behavior is covered by the existing test suite.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
devtools
Issue-Typ
Feature
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

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