Breakpoints with multiple files
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 36k
- Merge medio
- 1g 9h
- PR unite (30g)
- 558
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci il report su Windows 10 con CPython 3.11.1 usando a.py per chiamare bar() in b.py, quindi segui i punti di ingresso del debugger per i breakpoint e l'esecuzione passo passo. Conferma che un breakpoint in b.py venga raggiunto quando l'esecuzione inizia in a.py e aggiungi una copertura di regressione per il comportamento previsto tra file.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100