When an error is raised, there are several issues:
in the debugger, the local variable to the script are set to nil.
in the execution stack, the stack index should be set to the line of error in the script, which is different of the top of the stack, the default position shown in the debugger
When an error is raised, there are several issues: