Breakpoints with multiple files

Offen
#100,427 1 Kommentar 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
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
devtools

Rechercherichtung

Reproduziere den Bericht unter Windows 10 mit CPython 3.11.1, wobei a.py bar() in b.py aufruft, und folge dann den Einstiegspunkten des Debuggers für Breakpoints und Einzelschritt-Ausführung. Bestätige, dass ein Breakpoint in b.py erreicht wird, wenn die Ausführung in a.py beginnt, und füge eine Regressionstestabdeckung für das erwartete dateiübergreifende Verhalten hinzu.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

stdlib type-bug

Bug report

Consider the following structure:
a.py (foo())
'- b.py (bar())
meaning that a.py with foo() calls some function from b.py, namely bar().

Now, add a breakpoint to b.py and let the debugging begin. You will see that the debugger seems to simply overlook the breakpoint in b.py. In other words: Breakpoints are only accepted, if the next line to be executed before clicking on "Go" is in the same file.

This is rather bothersome and does work correctly in other IDEs like Qt for C++.

The solution

Please "step down" to a breakpoint by design.

Your environment

  • CPython versions tested on: 3.11.1
  • Operating system and architecture: Windows 10
Vorherrschende Sprache
Python
Sterne
77.2k
Forks
36k
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
558

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 python/cpython

Alle Issues in python/cpython

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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