[Idle-dev] CVS: idle Debugger.py,1.11,1.12 EditorWindow.py,1.25,1.26

Kurt B. Kaiser kbk@users.sourceforge.net
Fri, 05 Jul 2002 21:22:27 -0700


Update of /cvsroot/idlefork/idle
In directory usw-pr-cvs1:/tmp/cvs-serv11580

Modified Files:
	Debugger.py EditorWindow.py 
Log Message:
Modifying EditorWindow causes breakpoints in that module to be removed
from both sides of the split debugger.
M Debugger.py
M EditorWindow.py


Index: Debugger.py
===================================================================
RCS file: /cvsroot/idlefork/idle/Debugger.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** Debugger.py	6 Jul 2002 00:51:33 -0000	1.11
--- Debugger.py	6 Jul 2002 04:22:25 -0000	1.12
***************
*** 83,86 ****
--- 83,87 ----
          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
***************
*** 324,327 ****
--- 325,329 ----
              return
          text.tag_add("BREAK", "insert linestart", "insert lineend +1char")
+         edit.break_set = True
  
      def clear_breakpoint_here(self, edit):
***************
*** 338,341 ****
--- 340,344 ----
          text.tag_remove("BREAK", "insert linestart",\
                          "insert lineend +1char")
+         # Don't bother to track break_set status
  
      def clear_file_breaks(self, edit):
***************
*** 349,353 ****
              text.bell()
              return
!         text.tag_delete("BREAK")
  
  
--- 352,357 ----
              text.bell()
              return
!         text.tag_remove("BREAK", "1.0", END)
!         edit.break_set = False
  
  

Index: EditorWindow.py
===================================================================
RCS file: /cvsroot/idlefork/idle/EditorWindow.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** EditorWindow.py	24 Jun 2002 17:03:37 -0000	1.25
--- EditorWindow.py	6 Jul 2002 04:22:25 -0000	1.26
***************
*** 102,105 ****
--- 102,106 ----
          self.recentFilesPath=os.path.join(idleConf.GetUserCfgDir(),
                  'recent-files.lst')
+         self.break_set = False
          self.vbar = vbar = Scrollbar(top, name='vbar')
          self.text_frame = text_frame = Frame(top)
***************
*** 632,635 ****
--- 633,639 ----
              title = "*%s*" % title
              icon = "*%s" % icon
+             if self.break_set:
+                 shell = self.flist.pyshell 
+                 shell.interp.debugger.clear_file_breaks(self)
          self.top.wm_title(title)
          self.top.wm_iconname(icon)
***************
*** 700,705 ****
          if self.io.filename:
              self.UpdateRecentFilesList(newFile=self.io.filename)
!         shell = self.flist.pyshell
!         if shell and shell.interp.debugger:
              shell.interp.debugger.clear_file_breaks(self)
          WindowList.unregister_callback(self.postwindowsmenu)
--- 704,709 ----
          if self.io.filename:
              self.UpdateRecentFilesList(newFile=self.io.filename)
!         if self.break_set:
!             shell = self.flist.pyshell
              shell.interp.debugger.clear_file_breaks(self)
          WindowList.unregister_callback(self.postwindowsmenu)