Hi paulkth,
JScriptEngine supports script debugging via Visual Studio. Once your application has created an instance of JScriptEngine with debugging enabled, you should be able to attach the Visual Studio script debugger. You'll then see the list of loaded script documents in Solution Explorer; you can view the script code, set breakpoints, etc. The one caveat is that you cannot attach the script debugger if another debugger (managed or native) is already attached.
If on the other hand you need to implement a script debugger like Waqaar above, that's also possible, but it's a much bigger task, and it might be easier to create a debugger for V8 than for JScript/VBScript.
Good luck!
JScriptEngine supports script debugging via Visual Studio. Once your application has created an instance of JScriptEngine with debugging enabled, you should be able to attach the Visual Studio script debugger. You'll then see the list of loaded script documents in Solution Explorer; you can view the script code, set breakpoints, etc. The one caveat is that you cannot attach the script debugger if another debugger (managed or native) is already attached.
If on the other hand you need to implement a script debugger like Waqaar above, that's also possible, but it's a much bigger task, and it might be easier to create a debugger for V8 than for JScript/VBScript.
Good luck!