Improved output of debug messages.