Just thought I would share some very useful debugging tips that I have been using over the past two weeks to help with my portion of the CS401 project.
The most invaluable tool I use is Google Chromes developer tools: https://developers.google.com/chrome-developer-tools/docs/
console.log("whatever you want to log"+ variables +"\n\t");
This is great for keeping track of variables and to notify when a function is called. This was a big help when I started implementing the swipe and jQuery Mobile styles.
alert("whatever you want to log"+ variables +"\n\t");
That’s all for now, I will definitely post more debugging tips if I come across any.