コード例 #1
0
ファイル: LLDBShell.cs プロジェクト: googlestadia/vsi-lldb
        // 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());
        }
コード例 #2
0
        void ResetFeatureConfig()
        {
            taskContext.ThrowIfNotOnMainThread();

            vsiService.DebuggerOptions.Reset();
            commandWindowWriter.PrintLine("All options reset to default values.");
        }
コード例 #3
0
            public override void WriteLine(string value)
            {
                taskContext.ThrowIfNotOnMainThread();

                cmdWindowWriter.PrintLine(value);
            }