added debug code generation method
removed Dump() method