Function to debug a file.