Skip to content
Open
Binary file added Lib/idlelib/Icons/debug_current.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lib/idlelib/Icons/debug_go.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lib/idlelib/Icons/debug_go_disabled.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lib/idlelib/Icons/debug_line.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lib/idlelib/Icons/debug_out.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lib/idlelib/Icons/debug_out_disabled.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lib/idlelib/Icons/debug_over.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lib/idlelib/Icons/debug_over_disabled.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lib/idlelib/Icons/debug_prefs.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lib/idlelib/Icons/debug_prefs_disabled.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lib/idlelib/Icons/debug_step.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lib/idlelib/Icons/debug_step_disabled.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lib/idlelib/Icons/debug_stop.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Lib/idlelib/Icons/debug_stop_disabled.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
613 changes: 277 additions & 336 deletions Lib/idlelib/debugger.py

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions Lib/idlelib/filelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ def open(self, filename, action=None):
edit._close()
return None

def already_open(self, filename):
assert filename
filename = self.canonize(filename)
if not os.path.isdir(filename):
key = os.path.normcase(filename)
return key in self.dict
return False

def gotofileline(self, filename, lineno=None):
edit = self.open(filename)
if edit is not None and lineno is not None:
Expand Down
2 changes: 0 additions & 2 deletions Lib/idlelib/idle_test/test_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ def tearDownClass(cls):
cls.root.destroy()
del cls.root

def test_init(self):
debugger.NamespaceViewer(self.root, 'Test')


# Other classes are Idb, Debugger, and StackViewer.
Expand Down
27 changes: 0 additions & 27 deletions Lib/idlelib/idle_test/test_scrolledlist.py

This file was deleted.

7 changes: 7 additions & 0 deletions Lib/idlelib/pyshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ def restart_subprocess(self, with_cwd=False, filename=''):
debugger_r.close_subprocess_debugger(self.rpcclt)
except:
pass
debug.endexecuting()
# Kill subprocess, spawn a new one, accept connection.
self.rpcclt.close()
self.terminate_subprocess()
Expand Down Expand Up @@ -791,6 +792,8 @@ def runcode(self, code):
if self.tkconsole.canceled:
self.tkconsole.canceled = False
print("KeyboardInterrupt", file=self.tkconsole.stderr)
if self.interp.debugger:
self.interp.debugger.endexecuting()
else:
self.showtraceback()
finally:
Expand Down Expand Up @@ -991,11 +994,15 @@ def open_debugger(self):

def beginexecuting(self):
"Helper for ModifiedInterpreter"
if self.interp.debugger:
self.interp.debugger.beginexecuting()
self.resetoutput()
self.executing = True

def endexecuting(self):
"Helper for ModifiedInterpreter"
if self.interp.debugger:
self.interp.debugger.endexecuting()
self.executing = False
self.canceled = False
self.showprompt()
Expand Down
149 changes: 0 additions & 149 deletions Lib/idlelib/scrolledlist.py

This file was deleted.