##// END OF EJS Templates
more infor about ipdb configuration
M Bussonnier -
Show More
@@ -14,14 +14,35 b' Among other things, this subclass of PDB:'
14 14 - hide frames in tracebacks based on `__tracebackhide__`
15 15 - allows to skip frames based on `__debuggerskip__`
16 16
17
18 Global Configuration
19 --------------------
20
21 The IPython debugger will by read the global ``~/.pdbrc`` file.
22 That is to say you can list all comands supported by ipdb in your `~/.pdbrc`
23 configuration file, to globally configure pdb.
24
25 Example::
26
27 # ~/.pdbrc
28 skip_predicates debuggerskip false
29 skip_hidden false
30 context 25
31
32 Features
33 --------
34
35 The IPython debugger can hide and skip frames when printing or moving through
36 the stack. This can have a performance impact, so can be configures.
37
17 38 The skipping and hiding frames are configurable via the `skip_predicates`
18 39 command.
19 40
20 41 By default, frames from readonly files will be hidden, frames containing
21 42 ``__tracebackhide__=True`` will be hidden.
22 43
23 Frames containing ``__debuggerskip__`` will be stepped over, frames who's parent
24 frames value of ``__debuggerskip__`` is ``True`` will be skipped.
44 Frames containing ``__debuggerskip__`` will be stepped over, frames whose parent
45 frames value of ``__debuggerskip__`` is ``True`` will also be skipped.
25 46
26 47 >>> def helpers_helper():
27 48 ... pass
@@ -1070,7 +1091,9 b' class Pdb(OldPdb):'
1070 1091 raise ValueError()
1071 1092 self.context = new_context
1072 1093 except ValueError:
1073 self.error("The 'context' command requires a positive integer argument.")
1094 self.error(
1095 f"The 'context' command requires a positive integer argument (current value {self.context})."
1096 )
1074 1097
1075 1098
1076 1099 class InterruptiblePdb(Pdb):
General Comments 0
You need to be logged in to leave comments. Login now