debug:print ported to debug-print in commonmod. Seems to work.