debugging - How can I debug my JavaScript code? - Stack Overflow
When I find that I have a problematic code snippet, how should I go about debugging it? ... As with most answers, it really depends: What are you trying to achieve with your debugging? Basic development, fixing performance issues?...