
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2009-02-03 13:51 byorsenthil, last changed2022-04-11 14:56 byadmin. This issue is nowclosed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| pdb_skip_modules.patch | maru,2009-04-02 20:20 | Patch to skip modules in pdb, with test | ||
| Messages (3) | |||
|---|---|---|---|
| msg81058 -(view) | Author: Senthil Kumaran (orsenthil)*![]() | Date: 2009-02-03 13:51 | |
When using the python debugger, most often I step ('s') through thecode base and I often Call the standard library modules, whichever areimported in the scripts.This is often not desirable as I know that errors are within my modulesand not in standard library.Two things which a developer can do while using pdb is:1) Be careful as not to 's' into stdlib but use next 'n'.2) If accidentally stepped into, then use return 'r'.Instead of doing this repeatedly, how about having method in thedebugger to skip certain modules ( like standard library modules,certain package's modules etc)This would save a lot of distraction in call and returns, and developerscan just go ahead with 's' and Enters. | |||
| msg85262 -(view) | Author: Maru Newby (maru)* | Date: 2009-04-02 20:20 | |
Added a skip keyword argument to Bdb and Pdb class constructors to allowskipping of modules based on a list of glob-style matches (see fnmatch),as per the following example:import pdb;Pdb(skip=['django.command*']).set_trace() | |||
| msg87228 -(view) | Author: Georg Brandl (georg.brandl)*![]() | Date: 2009-05-05 08:54 | |
Applied the patch, added documentation and committed it asr72322. Thanks! | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:45 | admin | set | github: 49392 |
| 2009-05-05 08:54:53 | georg.brandl | set | status: open -> closed resolution: accepted messages: +msg87228 |
| 2009-04-04 15:50:59 | georg.brandl | set | assignee:georg.brandl nosy: +georg.brandl |
| 2009-04-02 20:20:19 | maru | set | files: +pdb_skip_modules.patch nosy: +maru messages: +msg85262 keywords: +patch |
| 2009-02-03 16:57:27 | LambertDW | set | nosy: +LambertDW |
| 2009-02-03 13:52:47 | orsenthil | set | components: + Library (Lib) |
| 2009-02-03 13:51:47 | orsenthil | create | |