Register the current watched variable in Debug Window before starting
authorlbessard
Tue, 24 Mar 2009 17:32:54 +0100
changeset 327 e82c422ad811
parent 326 386566f263f3
child 328 c23daa6996c2
Register the current watched variable in Debug Window before starting
runtime/PLCObject.py
--- a/runtime/PLCObject.py	Mon Mar 23 16:40:02 2009 +0100
+++ b/runtime/PLCObject.py	Tue Mar 24 17:32:54 2009 +0100
@@ -257,6 +257,8 @@
             c_argv = ctypes.c_char_p * len(self.argv)
             if self._LoadNewPLC() and self._startPLC(len(self.argv),c_argv(*self.argv)) == 0:
                 if debug:
+                    for idx in self._Idxs:
+                        self._RegisterDebugVariable(idx)
                     self._resumeDebug()
                 self.PLCStatus = "Started"
                 self.StatusChange()