Support for code generator to add debug statements to output state changes and other info to the console.