The exception thrown by the script engine should be handled by specifying the line of code that failed, I probably guess that a reason why that is already implemented is because the code changes morphology when the temp file is created to handle the script so the line error will result in a wrong line catch because of various file optimizations, I will suggest at least specifying the last tried action before crashing in case the other way isn't feasible,e.g.
Code: Select all
void KillPlayer()
{
IPlayer plr=null;
plr.Kill();
count++;
}
Another thing could be showing the last completed actions before the crash, in this case IPlayer a=null;
EDIT:
I want to specify that this suggestion is referring to visualizing a more detailed script crash error for the normal user that need to report the issue when he finds one, I'm not referring to better developer debugging techniques.