• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using the Calls Window

You have learned how to set breakpoints, step through and over code, use the Debug window, set the next line to be executed, and continue to run until the next breakpoint is reached. When you reach a breakpoint, it often is important to see which functions were called to bring you to this point. This is where the Calls feature can help.

To bring up the Call Stack window, click the Call Stack button on the toolbar or choose View|Call Stack. The window in Figure 16.9 appears. If you want to see the line of code that called a particular function or subroutine, double-click that particular function or click the function and then click Show. Although your execution point is not moved to the calling function or subroutine, you are able to view the code within the procedure. If you want to continue your code execution, press F8. You move back to the procedure through which you were stepping, and the next line of code executes. If you press F5, your code executes until another breakpoint or watch is reached. If you want to return to where you were without executing additional lines of code, choose Debug|Show Next Statement. To test this process, perform the next example.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint