Error: Attempt to run compile-and-go script on a cleared scope

nickf picture nickf · Mar 25, 2011 · Viewed 37.6k times · Source

Since upgrading to Firefox 4.0, I've noticed that I'm occasionally getting an error in the console stating:

attempt to run compile-and-go script on a cleared scope

The only information I can find about this on the net currently is on the mozilla groups forum, where it is suggested that it's something to do with session restoring. In my case, though I haven't been able to reliably reproduce the error, it happens at any time, not just after a restore.

What's the deal? How do I stop the error?

Answer

jakub.g picture jakub.g · Apr 2, 2012

For me (Firefox 11, Firebug 1.9.1) it happens sometimes after I refresh the page (either F5 or CTRL+F5) while debugger is paused on a breakpoint.

The solution seems to be to continue the execution of the script, and refresh the page only when Firebug is not paused.