一个程序由一个或多个通过调用对方来交互的函数组成。每当一个函数被调用时,内存的一块区域为这个新的函数调用分配好,被称为栈框架。 这块区域拥有一些重要信息,比如; 1、新的被调用函数的所有自动变量的存储空间。 2、被调用函数返回值要返回到的调用者的行号。 3、被调用函数的参数。 每个函数都有它自己的栈。总的来看,所有栈框架组成了调用栈(call stack)。
通过选择一个调试目标,或者调试视图中的任意其构件(例如,线程、栈框架),可以激活一个调试操作。
A debug session is made active by selecting the debug target, or any of its components (for example, threads, stack frames) in the debug view.
更有趣的是闭包实际上包裹了一个本地语境(变量所处的栈框架)并使其在他们实际的可见范围之外可见。
What is more interesting is that the closure actually packages a local context (stack frame where some variables reside) and makes it available outside the scope in which they actually exist.
ValueStack保存一个对象栈,这些数据将会公开给框架其他部分。
ValueStack stores a stack of objects, and this data will be exposed to the other parts of the framework.
应用推荐