Lots of useful techniques:

https://raygun.com/learn/javascript-debugging-tips