converting comments into debug messages