private void BreakpointService_Changing(object sender, SledBreakpointServiceBreakpointChangingEventArgs e)
        {
            var bShouldSend = true;
            var bEnabled    = e.Breakpoint.Enabled;

            switch (e.ChangeType)
            {
            // Send these if the breakpoint is enabled
            case SledBreakpointChangeType.Condition:
                bShouldSend = bEnabled;
                break;

            // Send these if the breakpoint is enabled
            case SledBreakpointChangeType.ConditionEnabled:
            case SledBreakpointChangeType.ConditionDisabled:
                bShouldSend = bEnabled;
                break;

            // Send these if the breakpoint is enabled
            case SledBreakpointChangeType.ConditionResultTrue:
            case SledBreakpointChangeType.ConditionResultFalse:
                bShouldSend = bEnabled;
                break;

            // Don't send breakpoint enabled/disabled change twice
            case SledBreakpointChangeType.Disabled:
            case SledBreakpointChangeType.Enabled:
                bShouldSend = false;
                break;

            // Send if breakpoint is enabled
            case SledBreakpointChangeType.LineNumber:
                bShouldSend = bEnabled;
                break;

            // Send if breakpoint is enabled
            case SledBreakpointChangeType.UseFunctionEnvironmentTrue:
            case SledBreakpointChangeType.UseFunctionEnvironmentFalse:
                bShouldSend = bEnabled;
                break;
            }

            if (bShouldSend)
            {
                SendBreakpoint(e.Breakpoint);
            }
        }
Esempio n. 2
0
 private void BreakpointService_Changed(object sender, SledBreakpointServiceBreakpointChangingEventArgs e)
 {
     SledOutDevice.OutLine(SledMessageType.Info, "ISledBreakpointService.Changed");
 }