Show More
@@ -10,10 +10,10 b' improvements.' | |||
|
10 | 10 | We also strongly recommend to use this via the `ipdb` package, which provides |
|
11 | 11 | extra configuration options. |
|
12 | 12 | |
|
13 |
Amo |
|
|
14 |
- support many IPython magics like pdef/psource |
|
|
15 | - allow to hide some frames in tracebacks | |
|
16 | - allow to skip some frames. | |
|
13 | Among other things, this subclass of PDB: | |
|
14 | - supports many IPython magics like pdef/psource | |
|
15 | - hide frames in tracebacks based on `__tracebackhide__` | |
|
16 | - allows to skip frames based on `__debuggerskip__` | |
|
17 | 17 | |
|
18 | 18 | The skipping and hiding frames are configurable via the `skip_predicates` |
|
19 | 19 | command. |
@@ -32,7 +32,7 b' frames value of ``__debuggerskip__`` is ``True`` will be skipped.' | |||
|
32 | 32 | ... print("in me neither") |
|
33 | 33 | ... |
|
34 | 34 | |
|
35 | One can define a decorator that wrap a function between the two helpers: | |
|
35 | One can define a decorator that wraps a function between the two helpers: | |
|
36 | 36 | |
|
37 | 37 | >>> def pdb_skipped_decorator(function): |
|
38 | 38 | ... |
@@ -380,7 +380,6 b' class Pdb(OldPdb):' | |||
|
380 | 380 | |
|
381 | 381 | # list of predicates we use to skip frames |
|
382 | 382 | self._predicates = self.default_predicates |
|
383 | self._skipping = False | |
|
384 | 383 | |
|
385 | 384 | # |
|
386 | 385 | def set_colors(self, scheme): |
@@ -919,7 +918,7 b' class Pdb(OldPdb):' | |||
|
919 | 918 | |
|
920 | 919 | """ |
|
921 | 920 | |
|
922 | # if we are disable don't skip | |
|
921 | # if we are disabled don't skip | |
|
923 | 922 | if not self._predicates["debuggerskip"]: |
|
924 | 923 | return False |
|
925 | 924 |
General Comments 0
You need to be logged in to leave comments.
Login now