/// <summary> /// Starts debugging in the context. /// </summary> /// <param name="debugApplication">The debug application to use for debugging.</param> public static void StartDebugging(Native.IDebugApplication32 debugApplication) { if (Environment.Is64BitProcess) { throw new InvalidOperationException(); } Native.ThrowIfError(Native.JsStartDebugging(debugApplication)); }
/// <summary> /// Creates a debug script context for running scripts. /// </summary> /// <remarks> /// Each script context has its own global object that is isolated from all other script /// contexts. /// </remarks> /// <param name="debugApplication">The debug application to use.</param> /// <returns>The created script context.</returns> public JavaScriptContext CreateContext(Native.IDebugApplication32 debugApplication) { JavaScriptContext reference; if (Environment.Is64BitProcess) { throw new InvalidOperationException(); } Native.ThrowIfError(Native.JsCreateContext(this, debugApplication, out reference)); return(reference); }