what are the different methods of debugging a smartform ?and what is the command for the output to be in a pdf format?