Printing result if debugging is enabled