enhanced debug output (supporting color)