Add --debug and --printf options to console test program.