示例#1
0
        void RefreshPad()
        {
            StackFrame frame = WindowsDebugger.CurrentStackFrame;

            if (frame == null)
            {
                this.Items.Clear();
            }
            else
            {
                this.Items.Clear();
                frame.Process.EnqueueForEach(
                    Dispatcher.CurrentDispatcher,
                    ValueNode.GetLocalVariables().ToList(),
                    n => this.Items.Add(n.ToSharpTreeNode())
                    );
            }
        }