Providing a more precise target of where the script crashed
Posted: Sat Dec 22, 2018 9:03 pm
Today's situation is if some scripts crashes you are aware only of the stack trace, without the line were the crash occurred.
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.
The exception should show that the script crashed on IPlayer.Kill() at the function KillPlayer()
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.
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.
