Fix bug in debugger when transfer without having build before and and opening debug view before running PLC
authorlaurent
Wed, 28 Mar 2012 00:05:35 +0200
changeset 707 6880c88e499e
parent 706 64a9b509973b
child 708 6ec28dc375cf
Fix bug in debugger when transfer without having build before and and opening debug view before running PLC
plugger.py
--- a/plugger.py	Wed Mar 28 00:05:15 2012 +0200
+++ b/plugger.py	Wed Mar 28 00:05:35 2012 +0200
@@ -1547,7 +1547,7 @@
         for infos, (start_row, start_col) in chunk_infos:
             start = (from_location[0] - start_row, from_location[1] - start_col)
             end = (to_location[0] - start_row, to_location[1] - start_col)
-            print from_location, to_location, start_row, start_col, start, end
+            #print from_location, to_location, start_row, start_col, start, end
             if self.AppFrame is not None:
                 self.AppFrame.ShowError(infos, start, end)
 
@@ -1986,7 +1986,7 @@
         if builder is not None:
             data = builder.GetBinaryCode()
             if data is not None :
-                if self._connector.NewPLC(MD5, data, extrafiles):
+                if self._connector.NewPLC(MD5, data, extrafiles) and self.GetIECProgramsAndVariables():
                     self.UnsubscribeAllDebugIECVariable()
                     self.ProgramTransferred()
                     if self.AppFrame is not None: