add cpp code debug output helper