Debug#
Provides functionality to modify the state of the simulation directly, in ways the game normally does not allow. Everything here is cheating: it has the same effect on a save, and the same consequences, as the game’s own debug menu.
Example#
The following example switches on infinite propellant, the cheat from the game’s debug menu:
import krpc.client.Connection;
import krpc.client.services.Debug;
public class DebugExample {
public static void main(String[] args) {
Connection connection = Connection.newInstance("Debug Example");
Debug.newInstance(connection).setInfinitePropellant(true);
connection.close();
}
}