How do I enable chrome debugging when inserting a script tag into the head using jquery
<p>I came across this case while trying to dynamicly load a bunch of script files, and where I was getting no errors returned when the JavaScript was failing. This will hopefully save someone a lot of time.</p>

<p>How do I enable chrome debugging when inserting a script tag into the head using jquery.
This does not allow for debugging (no errors are returned).</p>

<pre><code>$(function(){    
    $('head').append('&lt;script type="text/javascript" src="example.js"&gt;&lt;/script&gt;');
});
</code></pre>
