Dico: The script editor normally won't crash when your game crashes, except when you're debugging it. Fix the crash first by following the suggestions above, before debugging your script.
If you can't find it although you tried, please describe your problem and ask for help in the developer's section. This thread is for the Gamestudio update only, not for problems with your game.