Пример #1
0
        public void Breakpoint(AD7ProgramNode program, AD7Breakpoint breakpoint)
        {
            Debug.WriteLine("Event Breakpoint");
            Guid iid = new Guid(BreakPointEvent.IID);

            _callback.Event(_engine, null, null, null, new BreakPointEvent(breakpoint), ref iid, BreakPointEvent.Attributes);
        }
Пример #2
0
        public void BindBreakpoint(AD7Breakpoint ad7bp)
        {
            Breakpoint bp = this.Debugger.SetBreakpoint(_debugger.CurrentScope.OwningRoutine.SourceCode, ad7bp.LineNumber);

            ad7bp.CoreBreakpoint = bp;
            bp.Disabled          = ad7bp.Disabled;
            _breakpoints.Add(ad7bp.CoreBreakpoint, ad7bp);
        }
Пример #3
0
        int IDebugEngine2.CreatePendingBreakpoint(IDebugBreakpointRequest2 pBPRequest, out IDebugPendingBreakpoint2 ppPendingBP)
        {
            Debug.WriteLine("AD7Engine CreatePendingBreakpoint");
            _breakpoint = new AD7Breakpoint(_node, _events, pBPRequest);
            ppPendingBP = _breakpoint;
            //_events.Breakpoint(_node, _breakpoint);

            return(VSConstants.S_OK);
        }
Пример #4
0
        private DebuggerManager(AD7Events events, AD7ProgramNode node, AD7Breakpoint breakpoint)
        {
            _breakpoints = new Dictionary <Breakpoint, AD7Breakpoint>(new BreakpointDictionaryComparer());
            _events      = events;
            _node        = node;
            _breakpoint  = breakpoint;
            _debugger    = new Debugger();
            _autoRE      = new AutoResetEvent(false);

            if (string.IsNullOrEmpty(_node.ConnectionString))
            {
                throw new Exception("Debugger expected a non-null connection string");
            }

            _connection                 = new MySqlConnection(_node.ConnectionString);
            _debugger.Connection        = new MySqlConnection(_connection.ConnectionString);
            _debugger.UtilityConnection = new MySqlConnection(_connection.ConnectionString);
            _debugger.Connection.Open();
            _debugger.OnStartDebugger += () => { _debugger.CurrentScope.FileName = this.tempFileName; };

            Moniker            = _node.FileName;
            _debugger.SqlInput = _SpBody;
        }
Пример #5
0
 public AD7DebugErrorBreakpointResolution(AD7Breakpoint mybp)
 {
     Debug.WriteLine("AD7DebugErrorBreakpointResolution: ctor");
     bp = mybp;
 }
Пример #6
0
 /// <summary>
 /// Reinitializes the instance of debugger manager for a new debugging session.
 /// </summary>
 public static void Init(AD7Events events, AD7ProgramNode node, AD7Breakpoint breakpoint)
 {
     Instance = new DebuggerManager(events, node, breakpoint);
 }
 public AD7DebugErrorBreakpoint( AD7Breakpoint BP )
 {
   Debug.WriteLine("AD7DebugErrorBreakpoint: ctor");
   bp = BP;
 }
Пример #8
0
 public void Breakpoint(AD7ProgramNode program, AD7Breakpoint breakpoint)
 {
   Debug.WriteLine("Event Breakpoint");
   Guid iid = new Guid(BreakPointEvent.IID);
   _callback.Event(_engine, null, null, null, new BreakPointEvent(breakpoint), ref iid, BreakPointEvent.Attributes);
 }
Пример #9
0
 public BreakPointHitEvent(AD7Breakpoint breakpoint)
 {
   _breakpoint = breakpoint;
 }
Пример #10
0
 public AD7DebugErrorBreakpoint(AD7Breakpoint BP)
 {
     Debug.WriteLine("AD7DebugErrorBreakpoint: ctor");
     bp = BP;
 }
 public AD7DebugErrorBreakpointResolution( AD7Breakpoint mybp )
 {
   Debug.WriteLine("AD7DebugErrorBreakpointResolution: ctor");
   bp = mybp;
 }
Пример #12
0
 public BreakPointHitEvent(AD7Breakpoint breakpoint)
 {
     _breakpoint = breakpoint;
 }
Пример #13
0
    int IDebugEngine2.CreatePendingBreakpoint(IDebugBreakpointRequest2 pBPRequest, out IDebugPendingBreakpoint2 ppPendingBP)
    {
      Debug.WriteLine("AD7Engine CreatePendingBreakpoint");
      _breakpoint = new AD7Breakpoint(_node, _events, pBPRequest);
      ppPendingBP = _breakpoint;
      //_events.Breakpoint(_node, _breakpoint);

      return VSConstants.S_OK;
    }