> Perhaps a callback from > Lua that gets called every time a new line gets executed? It's called the "line hook". See the debug library. > 2. I'd like to abort a Lua script while it is executing. Raise an error inside the hook.