public boolean isDebugging() { return RobocodeProperties.isDebuggingOn(); }
private boolean isOkToPrint() { synchronized (syncRoot) { if (RobocodeProperties.isDebuggingOn()) { // It is always allowed to print when debugging is enabled. return true; } if (count > MAX_CHARS) { if (!messaged) { text.append( "\nSYSTEM: This robot is printing too much between actions. Output stopped until next action.\n"); messaged = true; } return false; } messaged = false; return true; } }