I just lost a lot of time trying to find and fix a non-existent bug, adding debug functions and such in my script, until I finally noticed the "running" checkbox was unchecked (because of a previous compilation failure and save, probably).
It would probably have saved me a lot of time if inactive scripts could be identified at a glance in the prim's inventory. My suggestion is to color them in yellow, orange, red or whatever!