Example #1
0
        /// <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));
        }
Example #4
0
        /// <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 void GetApplication(out IDebugApplication32 application)
 {
     application = DebugApplicationWrapper32.Unwrap(engine.debugApplication);
 }
        /// <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));
        }
Example #9
0
 public DebugApplicationWrapper32(IDebugApplication32 debugApplication)
 {
    this.debugApplication = debugApplication;
 }
Example #10
0
 public DebugApplicationWrapper32(IDebugApplication32 debugApplication)
 {
     this.debugApplication = debugApplication;
 }
Example #11
0
 internal static extern JsErrorCode JsStartDebugging(IDebugApplication32 debugApplication);
 public void GetApplication(out IDebugApplication32 application)
 {
     application = _jsEngine._debugApplicationWrapper.DebugApplication32;
 }
Example #13
0
 internal static extern JavaScriptErrorCode JsCreateContext(JavaScriptRuntime runtime, IDebugApplication32 debugSite, out JavaScriptContext newContext);
Example #14
0
 /// <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;
 }
Example #15
0
 internal static extern JavaScriptErrorCode JsCreateContext(JavaScriptRuntime runtime, IDebugApplication32 debugSite, out JavaScriptContext newContext);
Example #16
0
 public static DebugApplicationWrapper Create(IDebugApplication32 debugApplication)
 {
     return(new DebugApplicationWrapper32(debugApplication));
 }
Example #17
0
 internal static extern JsErrorCode JsCreateContext(IeJsRuntime runtime, IDebugApplication32 debugSite,
                                                    out IeJsContext newContext);
Example #18
0
 public static DebugApplicationWrapper Create(IDebugApplication32 debugApplication)
 {
     return new DebugApplicationWrapper32(debugApplication);
 }
 internal static extern JsErrorCode JsStartDebugging(IDebugApplication32 debugApplication);
 internal static extern JsErrorCode JsCreateContext(IeJsRuntime runtime, IDebugApplication32 debugSite, out IeJsContext newContext);
Example #21
0
 public DebugApplication32(IDebugApplication32 da32)
 {
     this.da32 = da32;
 }