How to debug my PID code?

One method I used last year was dumping all the data into the SD card. I had a separate file for each variable and each line was a separate data point that also had the timestamp. I could then put the SD card into my computer and import all the data into excel which allowed me to graph it. Here are some resources if you need help with using the SD card: