Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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;
        }
Esempio n. 5
0
 public AD7DebugErrorBreakpointResolution(AD7Breakpoint mybp)
 {
     Debug.WriteLine("AD7DebugErrorBreakpointResolution: ctor");
     bp = mybp;
 }
Esempio n. 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;
 }
Esempio n. 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);
 }
Esempio n. 9
0
 public BreakPointHitEvent(AD7Breakpoint breakpoint)
 {
   _breakpoint = breakpoint;
 }
Esempio n. 10
0
 public AD7DebugErrorBreakpoint(AD7Breakpoint BP)
 {
     Debug.WriteLine("AD7DebugErrorBreakpoint: ctor");
     bp = BP;
 }
 public AD7DebugErrorBreakpointResolution( AD7Breakpoint mybp )
 {
   Debug.WriteLine("AD7DebugErrorBreakpointResolution: ctor");
   bp = mybp;
 }
Esempio n. 12
0
 public BreakPointHitEvent(AD7Breakpoint breakpoint)
 {
     _breakpoint = breakpoint;
 }
Esempio n. 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;
    }