DebugMode is read only

Jul 19, 2011 at 1:22 AM

I tried to run the sample code to debug the script. But I was told the DebugMode property of Jint engine is readonly.

The version of Jint is 0.9

Jul 19, 2011 at 1:37 AM

Can you try with engine.SetSebugModes(true) ?

I will check the samples

Jul 19, 2011 at 1:51 AM

Found the broken samples. Fixed now.

Thanks for reporting.

Jul 19, 2011 at 3:00 AM
Edited Jul 19, 2011 at 9:21 PM
Thank for your quick response. This is exactly a tool I'm looking for.
Another change for the sample code should be
new Jint.Debugger.BreakPoint
instead of new BreakPoint. Otherwise add using Jing.Debugger; at the top of the code.

One more change I made to the sample code is to add
at the end so that the console will not close right away.

Jul 19, 2011 at 3:07 AM
Edited Jul 20, 2011 at 2:41 PM
The sample code for breakpoint is not working. The event handler is not called.
Jul 19, 2011 at 9:17 PM
Edited Jul 19, 2011 at 9:23 PM

I figured out why, the number 22 in new BreakPoint(4, 22, "x == 2;") is too big. It works when change it to smaller number.