Section 10.2. The Call Stack

   

10.2 The Call Stack

As you step in and out of methods , the Call Stack window will keep track of the order and hierarchy of method calls. If you look back at Figure 10-2, you'll see the Call Stack window in the lower righthand corner of the application. Figure 10-12 shows a close-up picture of the Call Stack window. You can see that the Time constructor was called by the Run( ) method, while the Run( ) method was in turn called by Main( ).

Figure 10-12. The call stack
figs/lvbn_1012.gif

In this case, if you double-click on the second line in the Call Stack window, the debugger will show you the line in Run( ) that called the Time constructor, as shown in Figure 10-13.

Figure 10-13. Tracing the call stack
figs/lvbn_1013.gif
   


Learning Visual Basic. NET
Learning Visual Basic .Net
ISBN: 0596003862
EAN: 2147483647
Year: 2002
Pages: 153
Authors: Jesse Liberty

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net