##// END OF EJS Templates
more info about ipdb configuration (#14509)
M Bussonnier -
r28844:494acd8e merge
parent child Browse files
Show More
@@ -14,14 +14,35 b' Among other things, this subclass of PDB:'
14 - hide frames in tracebacks based on `__tracebackhide__`
14 - hide frames in tracebacks based on `__tracebackhide__`
15 - allows to skip frames based on `__debuggerskip__`
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 The skipping and hiding frames are configurable via the `skip_predicates`
38 The skipping and hiding frames are configurable via the `skip_predicates`
18 command.
39 command.
19
40
20 By default, frames from readonly files will be hidden, frames containing
41 By default, frames from readonly files will be hidden, frames containing
21 ``__tracebackhide__=True`` will be hidden.
42 ``__tracebackhide__ = True`` will be hidden.
22
43
23 Frames containing ``__debuggerskip__`` will be stepped over, frames who's parent
44 Frames containing ``__debuggerskip__`` will be stepped over, frames whose parent
24 frames value of ``__debuggerskip__`` is ``True`` will be skipped.
45 frames value of ``__debuggerskip__`` is ``True`` will also be skipped.
25
46
26 >>> def helpers_helper():
47 >>> def helpers_helper():
27 ... pass
48 ... pass
@@ -1070,7 +1091,9 b' class Pdb(OldPdb):'
1070 raise ValueError()
1091 raise ValueError()
1071 self.context = new_context
1092 self.context = new_context
1072 except ValueError:
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 class InterruptiblePdb(Pdb):
1099 class InterruptiblePdb(Pdb):
General Comments 0
You need to be logged in to leave comments. Login now