Adds a debug function to print out the values of a PS