private void OnExited(object sender, EventArgs e) { Debug.WriteLine($"Debug adapter exited with code: {_process.ExitCode}", nameof(DebugAdapterProcess)); if (_stream != null) { _stream.Dispose(); } if (_process.ExitCode == 126 && !_debuggerConnected) { // 126 : ERROR_MOD_NOT_FOUND // This error code is returned only for the experimental debugger. MessageBox must be // bound to the VS Main window otherwise it can be hidden behind the main window and the // user may not see it. PtvsdVersionHelper.ShowPtvsdModuleNotFoundError(); } else if (_process.ExitCode == 687 && !_debuggerConnected) { // 687: ERROR_DLL_MIGHT_BE_INCOMPATIBLE // This error is returned only for the experimental debugger, // when running under an interpreter that is not supported. PtvsdVersionHelper.ShowPtvsdIncompatibleEnvError(); } }
private void OnLegacyDebugger(object sender, EventArgs e) { PtvsdVersionHelper.VerifyPtvsdVersionLegacy(); }