From bfed346259b27a51153b1f1bf5e4f062247e6246 Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Sat, 14 Dec 2002 04:38:51 +0000 Subject: M Debugger.py M IOBinding.py M PyShell.py * Could not remove last set of saved breakpoints from a file * Starting with empty edit window, could not load a file * Multiple adjacent breakpoints were saved as one breakpoint * Storing breakpoints whenever a file is closed can get them out of synch with the saved version of a file. Only store them when the file is saved. * Add comment on current limitations on file editing in the presence of breakpoints. * Replace get_current_breaks() with update_breakpoints(), add an update to PyShellEditorWindow.breakpoints, which is the master breakpoint data structure, and which is used to reload the subprocess debugger. * Revert Debugger.Debugger.load_breakpoints() to use editwin.breakpoints. It is easier to debug the debugger if the breakpoint list in IDLE is identical to the list in the subprocess debugger and is transferred when the subprocess debugger is restarted, because this list can be easily queried. * Cleanup some linespacing and comments in IOBinding.py --- Lib/idlelib/Debugger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/idlelib/Debugger.py') diff --git a/Lib/idlelib/Debugger.py b/Lib/idlelib/Debugger.py index a82fdbb21b5..30d0002eaf6 100644 --- a/Lib/idlelib/Debugger.py +++ b/Lib/idlelib/Debugger.py @@ -331,7 +331,7 @@ class Debugger: for editwin in pyshell_edit_windows: filename = editwin.io.filename try: - for lineno in editwin.get_current_breaks(): + for lineno in editwin.breakpoints: self.set_breakpoint_here(filename, lineno) except AttributeError: continue -- cgit v1.2.3