Skip to content

Print

Use print() to output normal text to the console.

print("Hello")
print(42)

You can print multiple values separated by spaces:

temp = -63
print("Temperature:", temp, "°C")

Use warn() for monitor messages you want to stand out in the persistent console without showing a toast:

if self.efficiency() < 100:
warn("oxygen generator below 100% efficiency")

Use debug() for noisy telemetry you only want while tuning a script. Debug lines are hidden from ALL unless you enable debug output from the console options menu:

debug("target", target_sector, "heat", self.get_heat())

The console can show THIS SCRIPT, ALL output, WARNINGS, or ERRORS.