예제 #1
0
        public void w_edit(DebuggerCore debugger, int number, Expression expression = null)
        {
            var w = debugger.WatchExpressions.FirstOrDefault(x => x.Number == number);

            if (w == null)
            {
                debugger.WriteLine("Watch expression #{0} doesn't exist", number);
                return;
            }

            if (expression == null)
            {
                debugger.PromptConsole(string.Format("w edit {0} {1}", w.Number, w.ExpressionText));
            }
            else
            {
                debugger.EditWatchExpression(w, expression);
            }
        }