Crash report

Would it be possible for codea to give crash reports if the simulator crashes? I’m thinking this might be possible in lua but I’m doubting it so is there a way to make this possible?