Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Binary file added BIN +298 Bytes 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 BIN +124 Bytes 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 BIN +76 Bytes 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 BIN +64 Bytes 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 BIN +97 Bytes 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 BIN +93 Bytes 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 BIN +94 Bytes 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 BIN +91 Bytes 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 BIN +379 Bytes 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 BIN +189 Bytes 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 BIN +94 Bytes 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 BIN +91 Bytes 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 BIN +106 Bytes 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 BIN +77 Bytes 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 613 Lib/idlelib/debugger.py

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions 8 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 2 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 27 Lib/idlelib/idle_test/test_scrolledlist.py

This file was deleted.

7 changes: 7 additions & 0 deletions 7 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 149 Lib/idlelib/scrolledlist.py

This file was deleted.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.