public void RunBeforeTests() { _debugger = new WinDbgWrapper(Const.PathToEngine, null); _api = new DebuggerApi(_debugger); Environment.CurrentDirectory = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "..\\..\\test-debuggees\\cpp\\src"); _debugger.ProcessExited += (a, b) => _hasExited = true; }
private void InitializeDebugger(string[] symbolsPath = null) { var options = new WinDbgOptions(Const.PathToEngine, null, symbolsPath); _debugger = new WinDbgWrapper(options); _api = new DebuggerApi(_debugger); Environment.CurrentDirectory = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "..\\..\\test-debuggees\\rust\\src"); _debugger.ProcessExited += (a, b) => _hasExited = true; }