When executing scripts, try extracting exception line numbers from any Exceptions caught. Only works in firefox.