Add ignore_module/unignore_module commands to pdb
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 77.2k
- Forks
- 35.9k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
Feature or enhancement
Proposal:
Add two new commands to the Python debugger (pdb) to ignore and unignore specific modules when navigating frames.
Those commands allows to use wildcards to ignore submodules too.
- ignore_module [module_name] - Add modules to skip during debugging
- unignore_module [module_name] - Remove modules from the skip list
When debugging applications we often need to step through deep stack traces from third party libraries that are hard to navigate and makes focusing on our code harder, requiring to manually go up or down to find our code.
There is a similar implementation on ipython https://github.com/ipython/ipython/pull/14973
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
- gh-139724
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Prüfung der Befehlsverarbeitung von pdb und der zugehörigen, im Vorschlag verknüpften IPython-Implementierung. Prüfe anschließend gh-139724, da dort bereits Arbeiten verknüpft sind. Als abgeschlossen gilt die Aufgabe, wenn pdb ignore_module und unignore_module einschließlich der Modulübereinstimmung mit Platzhaltern unterstützt und das Verhalten durch relevante Tests abgedeckt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 20/100