I sometimes find that I need to re-enable alerting for debugging. Of course I can close the tab and reload it but Is there a better way?
No. But you should really use
console.log() instead of
alert() for debugging.
In Chrome it even has the advantage of being able to print out entire objects (not just