[Python-checkins] r65414 - sandbox/trunk/ttk-gsoc/src/idlelib/Debugger.py

guilherme.polo python-checkins at python.org
Sat Aug 2 20:09:22 CEST 2008


Author: guilherme.polo
Date: Sat Aug  2 20:09:22 2008
New Revision: 65414

Log:
Loads breakpoints from all tabs now

Modified:
   sandbox/trunk/ttk-gsoc/src/idlelib/Debugger.py

Modified: sandbox/trunk/ttk-gsoc/src/idlelib/Debugger.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/idlelib/Debugger.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/idlelib/Debugger.py	Sat Aug  2 20:09:22 2008
@@ -320,12 +320,14 @@
         "Load PyShellEditorWindow breakpoints into subprocess debugger"
         pyshell_edit_windows = self.pyshell.flist.inversedict.keys()
         for editwin in pyshell_edit_windows:
-            filename = editwin.io.filename
-            try:
-                for lineno in editwin.breakpoints:
-                    self.set_breakpoint_here(filename, lineno)
-            except AttributeError:
-                continue
+            for page in editwin.text_notebook.pages.itervalues():
+                editpage = page.editpage
+                filename = editpage.io.filename
+                try:
+                    for lineno in editpage.breakpoints:
+                        self.set_breakpoint_here(filename, lineno)
+                except AttributeError:
+                    continue
 
 class StackViewer(ScrolledList):
 


More information about the Python-checkins mailing list