There are mechanisms intended to help debug the game.
Printing to the console
The game has an integrated function which you can use to debug output
GameConsole.print("String", 1);
Passing the 1 as a parameter, allows you to see the output, when you press F1, while the game is open.
Setting Debug Log Levels
The Commander_Wars.ini file includes options to output more debug data into the game's console. By setting LogActions to true, you can get more detailed information about the running functions in the game.
Filling up CO stars
You may fill up or modify the number of stars a given CO has filled up with the following:
game:game.getMap().getPlayer(0).getCO(0).setPowerFilled(99);
the setPowerFilled() parameter, sets the number of stars filled.