/// <summary> /// Starts debugging in the context /// </summary> /// <param name="debugApplication">The debug application to use for debugging</param> public static void StartDebugging(IDebugApplication64 debugApplication) { if (!Utils.Is64BitProcess()) { throw new InvalidOperationException(); } IeJsErrorHelpers.ThrowIfError(IeNativeMethods.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 IeJsContext CreateContext(IDebugApplication64 debugApplication) { IeJsContext reference; if (!Utils.Is64BitProcess()) { throw new InvalidOperationException(); } IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsCreateContext(this, debugApplication, out reference)); return(reference); }
public override DebugApplication GetDefaultDebugApplication() { IDebugApplication64 da64 = null; pdm.GetDefaultApplication(out da64); if (da64 == null) { return(null); } return(new DebugApplication64(da64)); }
/// <summary> /// Adds a new debug application. A return value indicates whether the adding succeeded. /// </summary> /// <param name="applicationWrapper">Wrapper for debug application</param> /// <param name="cookie">An engine-defined cookie</param> /// <returns>true if the debug application was added successfully; otherwise, false.</returns> public bool TryAddApplication(DebugApplicationWrapper applicationWrapper, out uint cookie) { uint result; if (_is64Bit) { IDebugApplication64 application64 = applicationWrapper.DebugApplication64; result = _processDebugManager64.AddApplication(application64, out cookie); } else { IDebugApplication32 application32 = applicationWrapper.DebugApplication32; result = _processDebugManager32.AddApplication(application32, out cookie); } bool isSucceeded = ComHelpers.HResult.Succeeded(result); return(isSucceeded); }
public void GetApplication(out IDebugApplication64 application) { application = DebugApplicationWrapper64.Unwrap(engine.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 IeJsContext CreateContext(IDebugApplication64 debugApplication) { IeJsContext reference; if (!Environment.Is64BitProcess) { throw new InvalidOperationException(); } IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsCreateContext(this, debugApplication, out reference)); return reference; }
public DebugApplicationWrapper64(IDebugApplication64 debugApplication) { this.debugApplication = debugApplication; }
internal static extern JsErrorCode JsStartDebugging(IDebugApplication64 debugApplication);
public void GetApplication(out IDebugApplication64 application) { application = _jsEngine._debugApplicationWrapper.DebugApplication64; }
internal static extern JavaScriptErrorCode JsCreateContext(JavaScriptRuntime runtime, IDebugApplication64 debugSite, out JavaScriptContext newContext);
/// <summary> /// Constructs an instance of the wrapper for debug application /// </summary> /// <param name="debugApplication">Instance of 64-bit debug application</param> public DebugApplicationWrapper(IDebugApplication64 debugApplication) { _is64Bit = true; _debugApplication64 = debugApplication; }
public static DebugApplicationWrapper Create(IDebugApplication64 debugApplication) { return(new DebugApplicationWrapper64(debugApplication)); }
internal static extern JsErrorCode JsCreateContext(IeJsRuntime runtime, IDebugApplication64 debugSite, out IeJsContext newContext);
public static DebugApplicationWrapper Create(IDebugApplication64 debugApplication) { return new DebugApplicationWrapper64(debugApplication); }
public DebugApplication64(IDebugApplication64 da64) { this.da64 = da64; }