/// <summary> /// Starts debugging in the context /// </summary> /// <param name="debugApplication">The debug application to use for debugging</param> public static void StartDebugging(IDebugApplication32 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(IDebugApplication32 debugApplication) { IeJsContext reference; if (Utils.Is64BitProcess()) { throw new InvalidOperationException(); } IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsCreateContext(this, debugApplication, out reference)); return(reference); }
public override DebugApplication GetDefaultDebugApplication() { IDebugApplication32 da32 = null; pdm.GetDefaultApplication(out da32); if (da32 == null) { return(null); } return(new DebugApplication32(da32)); }
/// <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 IDebugApplication32 application) { application = DebugApplicationWrapper32.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(IDebugApplication32 debugApplication) { IeJsContext reference; if (Environment.Is64BitProcess) { throw new InvalidOperationException(); } IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsCreateContext(this, debugApplication, out reference)); return reference; }
public DebugApplicationWrapper32(IDebugApplication32 debugApplication) { this.debugApplication = debugApplication; }
internal static extern JsErrorCode JsStartDebugging(IDebugApplication32 debugApplication);
public void GetApplication(out IDebugApplication32 application) { application = _jsEngine._debugApplicationWrapper.DebugApplication32; }
internal static extern JavaScriptErrorCode JsCreateContext(JavaScriptRuntime runtime, IDebugApplication32 debugSite, out JavaScriptContext newContext);
/// <summary> /// Constructs an instance of the wrapper for debug application /// </summary> /// <param name="debugApplication">Instance of 32-bit debug application</param> public DebugApplicationWrapper(IDebugApplication32 debugApplication) { _is64Bit = false; _debugApplication32 = debugApplication; }
public static DebugApplicationWrapper Create(IDebugApplication32 debugApplication) { return(new DebugApplicationWrapper32(debugApplication)); }
internal static extern JsErrorCode JsCreateContext(IeJsRuntime runtime, IDebugApplication32 debugSite, out IeJsContext newContext);
public static DebugApplicationWrapper Create(IDebugApplication32 debugApplication) { return new DebugApplicationWrapper32(debugApplication); }
public DebugApplication32(IDebugApplication32 da32) { this.da32 = da32; }