MCPcopy Index your code
hub / github.com/ipython/ipython / do_unignore_module

Method do_unignore_module

IPython/core/debugger.py:1346–1371  ·  view source on GitHub ↗

unignore_module Remove a module from the list of modules to skip when navigating frames. This will allow the debugger to step into frames from the specified module. Usage: unignore_module threading # Stop ignoring threading module frames

(self, arg)

Source from the content-addressed store, hash-verified

1344 self.skip.add(module_name)
1345
1346 def do_unignore_module(self, arg):
1347 """unignore_module <module_name>
1348
1349 Remove a module from the list of modules to skip when navigating frames.
1350 This will allow the debugger to step into frames from the specified module.
1351
1352 Usage:
1353 unignore_module threading # Stop ignoring threading module frames
1354 unignore_module asyncio.\\* # Remove asyncio.* pattern
1355 unignore_module # List currently ignored modules
1356 """
1357
1358 if self.skip is None:
1359 self.skip = set()
1360
1361 module_name = arg.strip()
1362
1363 if not module_name:
1364 self._show_ignored_modules()
1365 return
1366
1367 try:
1368 self.skip.remove(module_name)
1369 except KeyError:
1370 print(f"Module {module_name} is not currently ignored")
1371 self._show_ignored_modules()
1372
1373 def do_context(self, context: str):
1374 """context number_of_lines

Callers

nothing calls this directly

Calls 2

_show_ignored_modulesMethod · 0.95
removeMethod · 0.45

Tested by

no test coverage detected