[PATCH] dmscript: Use the debug functions provided by dmobject.[ch]