##// END OF EJS Templates
Implement understanding on __tracebackhide__...
Implement understanding on __tracebackhide__ __tracebackhide__ is an attribute that when set to a true value mean the frame need to be skipped/hidden. Implement this in both ultratb and un ipdb so that by default frames are hidden, add switches to toggle the behavior. We reimplement do_up/down but skipping hidden frames when enabled. This also uses the special value `_ipython_bottom_` to hide all of the ipython frames. This also add completion to the debugger

File last commit:

r25839:98bb6cc0
r25839:98bb6cc0
Show More
skip_tracebackhide.rst
11 lines | 705 B | text/x-rst | RstLexer
/ docs / source / whatsnew / pr / skip_tracebackhide.rst
Matthias Bussonnier
Implement understanding on __tracebackhide__...
r25839 The default tracebackmode will now skip frames that are marked with
``__tracebackhide__ = True`` and show how many traceback frames have been
skipped. This can be toggled by using :magic:`xmode` with the ``--show`` or
``--hide`` attribute. It will have no effect on non verbose traceback modes.
The ipython debugger also now understand ``__tracebackhide__`` as well and will
skip hidden frames when displaying. Movement up and down the stack will skip the
hidden frames and will show how many frames were hidden. Internal IPython frames
are also now hidden by default. The behavior can be changed with the
``skip_hidden`` command and accepts "yes", "no", "true" and "false" case
insensitive parameters.