add debug tool and start CodeGenerator