ignore_module Add a module to the list of modules to skip when navigating frames. When a module is ignored, the debugger will automatically skip over frames from that module. Supports wildcard patterns using fnmatch syntax: Usage:
(self, arg)
| 1317 | print("No modules are currently ignored.") |
| 1318 | |
| 1319 | def do_ignore_module(self, arg): |
| 1320 | """ignore_module <module_name> |
| 1321 | |
| 1322 | Add a module to the list of modules to skip when navigating frames. |
| 1323 | When a module is ignored, the debugger will automatically skip over |
| 1324 | frames from that module. |
| 1325 | |
| 1326 | Supports wildcard patterns using fnmatch syntax: |
| 1327 | |
| 1328 | Usage: |
| 1329 | ignore_module threading # Skip threading module frames |
| 1330 | ignore_module asyncio.\\* # Skip all asyncio submodules |
| 1331 | ignore_module \\*.tests # Skip all test modules |
| 1332 | ignore_module # List currently ignored modules |
| 1333 | """ |
| 1334 | |
| 1335 | if self.skip is None: |
| 1336 | self.skip = set() |
| 1337 | |
| 1338 | module_name = arg.strip() |
| 1339 | |
| 1340 | if not module_name: |
| 1341 | self._show_ignored_modules() |
| 1342 | return |
| 1343 | |
| 1344 | self.skip.add(module_name) |
| 1345 | |
| 1346 | def do_unignore_module(self, arg): |
| 1347 | """unignore_module <module_name> |
nothing calls this directly
no test coverage detected