Esempio n. 1
0
        // Prints the output from the |commandResult| to the Command Window.  If a Command Window
        // doesn't exist the output is printed to the logs instead.
        private void PrintCommandResult(SbCommandReturnObject commandResult)
        {
            taskContext.ThrowIfNotOnMainThread();

            if (commandResult == null)
            {
                string errorMessage = "ERROR: The LLDB Shell command failed to return a result.";
                Trace.WriteLine(errorMessage);
                commandWindowWriter.PrintLine(errorMessage);
                return;
            }
            commandWindowWriter.PrintLine(commandResult.GetDescription());
        }
        void ResetFeatureConfig()
        {
            taskContext.ThrowIfNotOnMainThread();

            vsiService.DebuggerOptions.Reset();
            commandWindowWriter.PrintLine("All options reset to default values.");
        }
            public override void WriteLine(string value)
            {
                taskContext.ThrowIfNotOnMainThread();

                cmdWindowWriter.PrintLine(value);
            }