Ejemplo n.º 1
0
 private void ExecuteCommand(IDebugControl6 debugControl, string command, string comment = null)
 {
     debugControl.Execute(DEBUG_OUTCTL.ALL_CLIENTS, " ", DEBUG_EXECUTE.DEFAULT);             // empty new line
     Echo(debugControl, $"now running command '{command}'" + (string.IsNullOrEmpty(comment) ? string.Empty : $" ({comment})"));
     Echo(debugControl, "=======================================================================");
     LogOnErrorHR(debugControl.Execute(DEBUG_OUTCTL.ALL_CLIENTS, command, DEBUG_EXECUTE.DEFAULT), $"failed to run '{command}'");
 }
Ejemplo n.º 2
0
 private static void Echo(IDebugControl6 debugControl, string msg)
 {
     LogOnErrorHR(debugControl.Execute(DEBUG_OUTCTL.ALL_CLIENTS, $"$$ {msg}", DEBUG_EXECUTE.DEFAULT), $"failed to " + $"$$ {msg}");
 }