Instantiate and draw a debugger window. :param pyshell: An instance of the PyShell Window :type pyshell: :class:`idlelib.pyshell.PyShell` :param idb: An instance of the IDLE debugger (optional) :type idb: :class:`idlelib.debugger.Idb`
(self, pyshell, idb=None)
| 97 | globalsviewer = None |
| 98 | |
| 99 | def __init__(self, pyshell, idb=None): |
| 100 | """Instantiate and draw a debugger window. |
| 101 | |
| 102 | :param pyshell: An instance of the PyShell Window |
| 103 | :type pyshell: :class:`idlelib.pyshell.PyShell` |
| 104 | |
| 105 | :param idb: An instance of the IDLE debugger (optional) |
| 106 | :type idb: :class:`idlelib.debugger.Idb` |
| 107 | """ |
| 108 | if idb is None: |
| 109 | idb = Idb(self) |
| 110 | self.pyshell = pyshell |
| 111 | self.idb = idb # If passed, a proxy of remote instance. |
| 112 | self.frame = None |
| 113 | self.make_gui() |
| 114 | self.interacting = False |
| 115 | self.nesting_level = 0 |
| 116 | |
| 117 | def run(self, *args): |
| 118 | """Run the debugger.""" |