Changed GetTraceVariables results unpack to something more robust in debug thread proc.
authorEdouard Tisserant
Tue, 31 Jan 2012 00:41:46 +0100
changeset 674 761de581cf7a
parent 673 2e1a2ea6242f
child 675 44b35c27e9ff
Changed GetTraceVariables results unpack to something more robust in debug thread proc.
plugger.py
--- a/plugger.py	Tue Jan 31 00:37:59 2012 +0100
+++ b/plugger.py	Tue Jan 31 00:41:46 2012 +0100
@@ -1779,7 +1779,11 @@
         self.debug_break = False
         debug_getvar_retry = 0
         while (not self.debug_break) and (self._connector is not None):
-            plc_status, debug_tick, debug_vars = self._connector.GetTraceVariables()
+            Trace = self._connector.GetTraceVariables()
+            if(Trace):
+                plc_status, debug_tick, debug_vars = Trace
+            else:
+                plc_status = None
             debug_getvar_retry += 1
             #print debug_tick, debug_vars
             if plc_status == "Started":