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:

#include <krpc_cnano.h>
#include <krpc_cnano/services/debug.h>

int main() {
  krpc_connection_t conn;
  if (krpc_open_serial(&conn, "COM0") != KRPC_OK) return 1;
  if (krpc_connect(conn, "Debug Example") != KRPC_OK) return 1;

  krpc_Debug_set_InfinitePropellant(conn, true);
  krpc_disconnect(conn);
}