Пример #1
0
    public void RunTest(ExtensionHost host, string[] args)
    {
        string name = args[0];

        switch (name)
        {
        case "ShowNativePythonFrames":
            DebuggerOptions.ShowNativePythonFrames = bool.Parse(args[1]);
            break;

        case "UsePythonStepping":
            DebuggerOptions.UsePythonStepping = bool.Parse(args[1]);
            break;

        case "ShowCppViewNodes":
            DebuggerOptions.ShowCppViewNodes = bool.Parse(args[1]);
            break;

        case "ShowPythonViewNodes":
            DebuggerOptions.ShowPythonViewNodes = bool.Parse(args[1]);
            break;

        default:
            throw new ArgumentException();
        }
    }
        public override DebuggerSession CreateSession()
        {
            var session = CurrentSession = new NetDebuggerSession();

            if (ExtensionHost != null)
            {
                session.ProgressReporter = ExtensionHost.CreateOrGetReporter("Debug");

                foreach (var breakpoint in ExtensionHost.BookmarkManager.GetBookmarks <BreakpointBookmark>())
                {
                    CurrentSession.AddBreakpoint(breakpoint);
                }
            }
            return(session);
        }
Пример #3
0
 public ExtensionHostTest()
 {
     this.testee = new ExtensionHost<IExtension>();
 }
Пример #4
0
 public DataPointProviders(ExtensionHost host)
     : base("DataPointProviders", host) { }
 public DataPointProviders(ExtensionHost host)
     : base("DataPointProviders", host)
 {
 }
Пример #6
0
 public ParameterDataProviders(ExtensionHost host)
     : base("ParameterDataProviders", host)
 {
 }