Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue5142

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:pdb feature request: Ability to skip standard lib modules and other selected packages/modules
Type:enhancementStage:
Components:Library (Lib)Versions:Python 3.0, Python 3.1, Python 2.7, Python 2.6
process
Status:closedResolution:accepted
Dependencies:Superseder:
Assigned To: georg.brandlNosy List: LambertDW, georg.brandl, maru, orsenthil
Priority:normalKeywords:patch

Created on2009-02-03 13:51 byorsenthil, last changed2022-04-11 14:56 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
pdb_skip_modules.patchmaru,2009-04-02 20:20Patch to skip modules in pdb, with test
Messages (3)
msg81058 -(view)Author: Senthil Kumaran (orsenthil)*(Python committer)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)*(Python committer)Date: 2009-05-05 08:54
Applied the patch, added documentation and committed it asr72322. Thanks!
History
DateUserActionArgs
2022-04-11 14:56:45adminsetgithub: 49392
2009-05-05 08:54:53georg.brandlsetstatus: open -> closed
resolution: accepted
messages: +msg87228
2009-04-04 15:50:59georg.brandlsetassignee:georg.brandl

nosy: +georg.brandl
2009-04-02 20:20:19marusetfiles: +pdb_skip_modules.patch

nosy: +maru
messages: +msg85262

keywords: +patch
2009-02-03 16:57:27LambertDWsetnosy: +LambertDW
2009-02-03 13:52:47orsenthilsetcomponents: + Library (Lib)
2009-02-03 13:51:47orsenthilcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp