Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to get breakpoint print message in EnvDTE breakpoint object?

$
0
0

Hi all! I want this (Print message string)

get here

private void DebuggerEvents_OnEnterBreakMode(dbgEventReason Reason, ref dbgExecutionAction ExecutionAction)
    {
      //if(Reason == dbgEventReason.dbgEventReasonBreakpoint)
      //{
        Breakpoint bp = _applicationObject.Debugger.BreakpointLastHit;
        if(bp.ConditionType == dbgBreakpointConditionType.dbgBreakpointConditionTypeWhenTrue)
        {
          if(bp.Condition.Contains("[ClearOutputWindow]"))
          {
            Window w = (Window)_applicationObject.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);
            OutputWindow ow = (OutputWindow)w.Object;
            ow.ActivePane.Clear();
          }
        }
      //}
    }

but bp object don't have similar property.

Viewing all articles
Browse latest Browse all 4410

Trending Articles