/// <summary> /// Initializes a new instance of the <see cref="DebuggerTextWriter" /> class. /// </summary> /// <param name="dbgEngDll">The DbgEngDll debugger engine.</param> /// <param name="outputType">Type of the output.</param> public DebuggerTextWriter(DbgEngDll dbgEngDll, DebugOutput outputType) { OutputType = outputType; outputCallbacksWide = dbgEngDll.Client.GetOutputCallbacksWide(); outputCallbacks = dbgEngDll.Client.GetOutputCallbacks(); }
/// <summary> /// Initializes a new instance of the <see cref="DbgEngOutputCallbacksSwitcher" /> class. /// </summary> /// <param name="dbgEngDll">The DbgEngDll debugger engine.</param> /// <param name="newCallbacks">The new callbacks interface.</param> public DbgEngOutputCallbacksSwitcher(DbgEngDll dbgEngDll, IDebugOutputCallbacksWide newCallbacks) { previousCallbacks = dbgEngDll.Client.GetOutputCallbacksWide(); dbgEngDll.Client.SetOutputCallbacksWide(newCallbacks); this.dbgEngDll = dbgEngDll; }