Runtime Exception Event

edited 2:37PM in FastScript
Hello,

if an error occurs during compilation you provide a good event handler in which information like error description and position are exposed.

But what if the error comes up during execution? Ok we could do:
try
  FastScript1.Run;
except
  on e:Exception do Log(e.Message);
end;

But this doesn't give us detailed info about the error and doesn't give us the exact position of the error inside the script.

We could use the OnRunLine event handler to populate local runtime information but this is much like for a debugger application and considerably slows down execution.

Do you agree? Will a feature like this be available in the near future?

Comments

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.