diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2002-07-06 04:22:25 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2002-07-06 04:22:25 (GMT) |
commit | 889f8bf259eee088d2d81e3978fbdf34585fc9ae (patch) | |
tree | b582ce8c905813ce73a9b170b217e2053105422b /Lib/idlelib/Debugger.py | |
parent | 491892b25e21173dee7c3427aed2d15e883c240d (diff) | |
download | cpython-889f8bf259eee088d2d81e3978fbdf34585fc9ae.zip cpython-889f8bf259eee088d2d81e3978fbdf34585fc9ae.tar.gz cpython-889f8bf259eee088d2d81e3978fbdf34585fc9ae.tar.bz2 |
Modifying EditorWindow causes breakpoints in that module to be removed
from both sides of the split debugger.
M Debugger.py
M EditorWindow.py
Diffstat (limited to 'Lib/idlelib/Debugger.py')
-rw-r--r-- | Lib/idlelib/Debugger.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/idlelib/Debugger.py b/Lib/idlelib/Debugger.py index c030588..201715d 100644 --- a/Lib/idlelib/Debugger.py +++ b/Lib/idlelib/Debugger.py @@ -82,6 +82,7 @@ class Debugger: edit_windows = self.pyshell.flist.inversedict.keys() for window in edit_windows: window.text.tag_remove("BREAK", 1.0, END) + window.break_set = False # Clean up pyshell if user clicked debugger control close widget. # (Causes a harmless extra cycle through close_debugger() if user # toggled debugger from pyshell Debug menu) @@ -323,6 +324,7 @@ class Debugger: text.bell() return text.tag_add("BREAK", "insert linestart", "insert lineend +1char") + edit.break_set = True def clear_breakpoint_here(self, edit): text = edit.text @@ -337,6 +339,7 @@ class Debugger: return text.tag_remove("BREAK", "insert linestart",\ "insert lineend +1char") + # Don't bother to track break_set status def clear_file_breaks(self, edit): text = edit.text @@ -348,7 +351,8 @@ class Debugger: if msg: text.bell() return - text.tag_delete("BREAK") + text.tag_remove("BREAK", "1.0", END) + edit.break_set = False class StackViewer(ScrolledList): |