Fixed bug in debugger when debug tick received is None
authorLaurent Bessard
Wed, 20 Nov 2013 09:38:13 +0100
changeset 1376 f8acd48e0342
parent 1375 dc94c71a2f25
child 1377 cc8f9177d41c
Fixed bug in debugger when debug tick received is None
ProjectController.py
--- a/ProjectController.py	Wed Nov 13 23:25:26 2013 +0100
+++ b/ProjectController.py	Wed Nov 20 09:38:13 2013 +0100
@@ -1374,7 +1374,8 @@
             #print [dict.keys() for IECPath, (dict, log, status, fvalue) in self.IECdebug_datas.items()]
             if plc_status == "Started":
                 self.IECdebug_lock.acquire()
-                if (len(debug_vars) == len(self.DebugValuesBuffers) and
+                if (debug_tick is not None and
+                    len(debug_vars) == len(self.DebugValuesBuffers) and
                     len(debug_vars) == len(self.TracedIECPath)):
                     if debug_getvar_retry > DEBUG_RETRIES_WARN:
                         self.logger.write(_("... debugger recovered\n"))