Debug for the sample code