Exemple #1
0
        int IDebugExpression2.EvaluateSync(
            enum_EVALFLAGS dwFlags,
            uint dwTimeout,
            IDebugEventCallback2 pExprCallback,
            out IDebugProperty2 ppResult)
        {
            if (MySql.Debugger.Debugger.GetTagHashCode(_stackFrame._rs.OwningRoutine.SourceCode) !=
                DebuggerManager.Instance.Debugger.CurrentScope.OwningRoutine.Hash)
            {
                // This should never happen.
                ppResult = null;
                return(VSConstants.E_NOTIMPL);
            }
            AD7Property prop = new AD7Property(_expr, _stackFrame.Node, _stackFrame._rs, true);

            ppResult = prop;
            // Send evaluation complete event
            DebuggerManager.Instance._events.ExpressionEvalCompleted(
                _stackFrame.Node, ( IDebugExpression2 )this, ( IDebugProperty2 )prop);
            return(VSConstants.S_OK);
        }
 int IDebugStackFrame2.GetDebugProperty(out IDebugProperty2 ppProperty)
 {
     Debug.WriteLine("AD7StackFrame: GetDebugProperty");
     ppProperty = new AD7Property(_node);
     return(VSConstants.S_OK);
 }