aborting execution while in debugMode

Feb 8, 2010 at 8:40 AM
Edited Feb 8, 2010 at 8:40 AM

Hi there,

I am quite new to the JINT engine, but have to say that it looks great.  Well JINT documentation is apparently a bit outdated, but one can still manage it easily to get the engine run. Thanks!

My question now is:

Is there any simple way to abort the script execution  e.g. inside of the debugMode handler?

jint.Step += (sender, info) =>

if ( severeProblemOccurred(...) == true )
//-->> here to stop execution: ???

Many thanks in advance
Feb 8, 2010 at 8:49 AM


Actually, I think the most simple way would be to throw an Exception of yours. Thus, the JintEngine would not catch it, and you would be able to catch it by yourself, with a try/catch around your engine.Run call.

I do not see any other way around.


Nicolas Penin