In This Book

Examining Source Files

When you load a target program, the source ￿le is displayed in the source ￿le display area. See Figure 2-2.

Figure 2-2. Source File Display

An arrow symbol in the annotation margin indicates the current point of execution. The circled B symbol designates a breakpoint.

Ordinarily, the debugger sets breakpoints at the program's entry and exit statements and executes the program up to its entry statement. You can create and delete breakpoints by clicking with the left mouse button on a line number in the annotation margin.

You can search for text strings in the source by selecting Visit:Search or

4CTRL5-4S5.

If the target program was compiled from a number of source ￿les, you can display other ￿les by selecting Visit:File() after entering the source ￿le name in the (): input box.

In addition, you can use the environment command. You must enclose the source ￿le name in double quotes. For example:

env "source ￿lename"

If you move a source ￿le after compiling the program, the debugger ma y be unable to ￿nd the source ￿le. It will issue the w arning: Unable to access

2-12 Compiling, Loading, and Executing the Target Program