Exemplo n.º 1
0
        public static bool GetCanExecuteToggleBreakpoint(this PowerShellTab tab)
        {
            var canExecuteToggleBreakpointProperty = tab.GetType().GetProperty("CanExecuteToggleBreakpoint", BindingFlags.Instance | BindingFlags.NonPublic);
            var canExecuteToggleBreakpoint         = (bool)canExecuteToggleBreakpointProperty.GetValue(tab);

            return(canExecuteToggleBreakpoint);
        }
Exemplo n.º 2
0
        public static List <Breakpoint> GetBreakpoints(this PowerShellTab tab)
        {
            var breakPointsField = tab.GetType().GetField("breakpoints", BindingFlags.Instance | BindingFlags.NonPublic);
            var breakpoints      = breakPointsField.GetValue(tab) as List <Breakpoint>;

            return(breakpoints);
        }
Exemplo n.º 3
0
        public static void DoAsynchronousInvoke(this PowerShellTab tab, PSCommand command)
        {
            var getBreakpointsAtLineMethod = tab.GetType().GetMethod("DoAsynchronousInvoke", BindingFlags.Instance | BindingFlags.NonPublic);

            getBreakpointsAtLineMethod.Invoke(tab, new object[] { command });
        }