interact Start an interactive interpreter whose global namespace contains all the (global and local) names found in the current scope.
(self, arg)
| 2358 | if e.startswith(text)] |
| 2359 | |
| 2360 | def do_interact(self, arg): |
| 2361 | """interact |
| 2362 | |
| 2363 | Start an interactive interpreter whose global namespace |
| 2364 | contains all the (global and local) names found in the current scope. |
| 2365 | """ |
| 2366 | ns = {**self.curframe.f_globals, **self.curframe.f_locals} |
| 2367 | with self._enable_rlcompleter(ns): |
| 2368 | console = _PdbInteractiveConsole(ns, message=self.message) |
| 2369 | console.interact(banner="*pdb interact start*", |
| 2370 | exitmsg="*exit from pdb interact command*") |
| 2371 | |
| 2372 | def do_alias(self, arg): |
| 2373 | """alias [name [command]] |