How to work out why javascript code is not working by putting stops in it
<p>I am doing a job which involves javascript code that I didn't write.</p>

<p>Currently I am stuck because the javascript code doesn't 'work', instead of me putting all the code onto here and asking why it doesn't work I would like to know how to stop the code to see if it is working -</p>

<p>At the moment I am using</p>

<pre><code>  alert("This code is good so far.");
</code></pre>

<p>but now I'm up to a class constructor and something, somewhere, isn't talking to the database. :(</p>
