Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ab1113

Browse files
committed
Show message when skipping module on debugger step
1 parent 9eab230 commit 0ab1113

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

IPython/core/debugger.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,21 @@ def stop_here(self, frame):
11071107
]
11081108
)
11091109
)
1110+
if self.skip and self.is_skipped_module(frame.f_globals.get("__name__", "")):
1111+
print(
1112+
self.theme.format(
1113+
[
1114+
(
1115+
Token.ExcName,
1116+
" [... skipped 1 ignored module(s)]",
1117+
),
1118+
(Token, "\n"),
1119+
]
1120+
)
1121+
)
1122+
1123+
return False
1124+
11101125
return super().stop_here(frame)
11111126

11121127
def do_up(self, arg):

0 commit comments

Comments
 (0)