form handler

Where do i install my formhandling.php file so that a form from Gravity Forms can find it? What special lines of code such as require_once or whatever are required for wordpress to recognize the file?

Along that same line, the file processes the entire form without any syntax or any errors but it so quickly goes through something so fast I can't read it. How can I pause the execution assuming the file is being read? Thank you!