ipdb icon indicating copy to clipboard operation
ipdb copied to clipboard

How to use ipdb to skip/blackbox 3rd-party scripts/frames?

Open snowman opened this issue 6 years ago • 1 comments

py2: class pdb.Pdb(completekey='tab', stdin=None, stdout=None, skip=None) py3: class pdb.Pdb(completekey='tab', stdin=None, stdout=None, skip=None, nosigint=False, readrc=True

The skip argument, if given, must be an iterable of glob-style module name patterns. The debugger will not step into frames that originate in a module that matches one of these patterns.

Example call to enable tracing with skip: import pdb; pdb.Pdb(skip=['django.*']).set_trace()

Whether a frame is considered to originate in a certain module is determined by > the name in the frame globals.

Term

snowman avatar Dec 25 '19 03:12 snowman

I guess a PR would be welcome. It should extend _init_pdb to accept skip argument.

gotcha avatar Jan 07 '20 09:01 gotcha