// TODO: Evaluate if this is still necessary //private void WarnAboutPGO(string moduleName) { // const string content = // "Python/native mixed-mode debugging does not support Python interpreters that are built with PGO (profile-guided optimization) enabled. " + // "If you are using a stock Python interpreter, you should upgrade to a more recent version of it. If you're using a custom built " + // "interpreter, please disable PGO."; // MessageBox.Show(content, "PGO Is Not Supported", MessageBoxButton.OK, MessageBoxImage.Error); //} private void SetDebugOptions(IDebugEngine2 engine) { var pyService = _serviceProvider.GetPythonToolsService(); var options = new StringBuilder(); if (pyService.DebuggerOptions.WaitOnAbnormalExit) { options.Append(";" + AD7Engine.WaitOnAbnormalExitSetting + "=True"); } if (pyService.DebuggerOptions.WaitOnNormalExit) { options.Append(";" + AD7Engine.WaitOnNormalExitSetting + "=True"); } if (pyService.DebuggerOptions.TeeStandardOutput) { options.Append(";" + AD7Engine.RedirectOutputSetting + "=True"); } if (pyService.DebuggerOptions.BreakOnSystemExitZero) { options.Append(";" + AD7Engine.BreakSystemExitZero + "=True"); } if (pyService.DebuggerOptions.DebugStdLib) { options.Append(";" + AD7Engine.DebugStdLib + "=True"); } engine.SetMetric(AD7Engine.DebugOptionsMetric, options.ToString()); }