#General Debugging Techniques
##Reproduce It The first step is to find a way to reliably reproduce the problem, document the steps. Often doing this alone will give you a good indication of where the problem might originate. If you have a reproducable procedure that only works some of the time it is likely you have a race condition somewhere in your logic.
##Up-to-date Second step should be to confirm you are inspecting the latest code. Did your changes really get uploaded to your development instance? Are you absolutely sure you are editing the correctly file(s), not a similarly named or overridden file?
##Inspect Error Logs Often the problem is already being reported, whether server-side or client-side console errors.