From 98766114ce72cc5bfb9b711970a58e5c8e2c05e1 2020-07-23 05:55:57 From: Quentin Peter Date: 2020-07-23 05:55:57 Subject: [PATCH] Make stop_here actually stop The return was not False in case of `__tracebackhide__` --- diff --git a/IPython/core/debugger.py b/IPython/core/debugger.py index 5095130..5b4f06e 100644 --- a/IPython/core/debugger.py +++ b/IPython/core/debugger.py @@ -671,15 +671,15 @@ class Pdb(OldPdb): do_w = do_where def stop_here(self, frame): - hidden = False - if self.skip_hidden: - hidden = frame.f_locals.get("__tracebackhide__", False) - if hidden: + """Check if pdb should stop here""" + if not super().stop_here(frame): + return False + if self.skip_hidden and frame.f_locals.get("__tracebackhide__", False): Colors = self.color_scheme_table.active_colors ColorsNormal = Colors.Normal print(f"{Colors.excName} [... skipped 1 hidden frame]{ColorsNormal}\n") - - return super().stop_here(frame) + return False + return True def do_up(self, arg): """u(p) [count]