Whenever the debug program is paused at a breakpoint or during manual stepping, the current stack is displayed in the Call Stack tool. This shows all program stack frames encountered between invocation of the program and the current run position. Outermost stack frames are higher up on the list.
When the debugger steps or stops at a breakpoint or exception, it selects the innermost stack frame by default. In order to visit other stack frames further up or down the stack, select them in the Call Stack tool. You may also change stack frames using the Up Stack and Down Stack items in the Debug menu, the up/down tool bar icons, the stack selector popup menus the other debugging tools.
When you change stack frames, all the tools in Wing that reference the current stack frame will be updated, and the current line of code at that stack frame is presented in an editor window.
In Wing IDE Professional, the current stack frame is also used to control evaluation context in the Debug Probe and Watch tools.
To change the type of stack display, right-click on the Call Stack tool and select from the options for the display and positioning of the code line excerpted from the debug process.
When an exception has occurred, a backtrace is also captured by the Exceptions notification tool, where it can be accessed even after the debug process has exited.
|« 12.6. Flow Control||Table of Contents||12.8. Viewing Debug Data »|