Exemplo n.º 1
0
        public IEval CreateEvalUI(DebuggerThread thread)
        {
            dispatcher.VerifyAccess();
            var dbg = theDebugger.Debugger;

            if (dbg == null || dbg.ProcessState != DBG.DebuggerProcessState.Paused)
            {
                throw new InvalidOperationException("Can only evaluate when the debugged process has paused at a safe location. Wait for a breakpoint to hit.");
            }
            if (dbg.IsEvaluating)
            {
                throw new InvalidOperationException("Only one evaluation at a time can be in progress");
            }
            return(new Eval(this, thread.AppDomain, theDebugger.CreateEval(thread.DnThread.CorThread)));
        }
Exemplo n.º 2
0
		public IEval CreateEvalUI(DebuggerThread thread) {
			dispatcher.VerifyAccess();
			var dbg = theDebugger.Debugger;
			if (dbg == null || dbg.ProcessState != DBG.DebuggerProcessState.Paused)
				throw new InvalidOperationException("Can only evaluate when the debugged process has paused at a safe location. Wait for a breakpoint to hit.");
			if (dbg.IsEvaluating)
				throw new InvalidOperationException("Only one evaluation at a time can be in progress");
			return new Eval(this, thread.AppDomain, theDebugger.CreateEval(thread.DnThread.CorThread));
		}