--- a/ProjectController.py Fri Jul 22 12:14:52 2022 +0200
+++ b/ProjectController.py Tue Aug 02 11:50:54 2022 +0200
@@ -1577,12 +1577,16 @@
return debug_status, ticks, buffers
RegisterDebugVariableErrorCodes = {
+ # Connector only can return None
+ None : _("Debug: connection problem.\n"),
# TRACE_LIST_OVERFLOW
1 : _("Debug: Too many variables traced. Max 1024.\n"),
# FORCE_LIST_OVERFLOW
2 : _("Debug: Too many variables forced. Max 256.\n"),
# FORCE_BUFFER_OVERFLOW
- 3 : _("Debug: Cumulated forced variables size too large. Max 1KB.\n")
+ 3 : _("Debug: Cumulated forced variables size too large. Max 1KB.\n"),
+ # DEBUG_SUSPENDED
+ 4 : _("Debug: suspended.\n")
}
def RegisterDebugVarToConnector(self):
@@ -1625,7 +1629,8 @@
self.DebugToken = None
self.logger.write_warning(
self.RegisterDebugVariableErrorCodes.get(
- -res, _("Debug: Unknown error")))
+ -res if res is not None else None,
+ _("Debug: Unknown error")))
else:
self.TracedIECPath = []
self._connector.SetTraceVariablesList([])