ContentsIndexPreviousNext

The Source Menu

The Source menu contains commands related to viewing your source code. These commands are available with source-level debugging.

gt100012.gif

The Source Menu (Windows).

*Line 1 positions the cursor at the first line of your program.

The keyboard form of this command is "WT".

*Last Line positions the cursor at the last line in your program.

The keyboard form of this command is "WB".

*Current Line positions the cursor at the current line in your program.

The keyboard form of this command is "W@".

*Paragraph prompts you for a procedure name and positions the cursor there. The procedure must be located in the current program.

The keyboard form of this command is "W procedure".

*Find Forwards prompts you for text to locate in the program's source code. The debugger searches forward, starting at the cursor line. Case is not considered, so you do not have to match the capitalization of the text you want to locate.

The default text for the search is shown in a dialog box. This is the current selection (the currently highlighted variable or procedure name). If nothing is selected, the default is the last search string. If you do not want the default, simply type over it.

Before you choose Find Forwards, you can highlight a variable or procedure name by clicking on it. If you do not have a mouse, use the arrow keys to move to the desired line and then press <tab> to highlight the desired name.

The keyboard form of this command is "FF text".

*Find Backwards prompts you for text to locate in the program's source code. The debugger searches backwards, starting at the cursor line. Case is not considered, so you do not have to match the capitalization of the text you want to locate.

The default text for the search is shown in a dialog box. This is the current selection (the currently highlighted variable or procedure name). If nothing is selected, the default is the last search string. If you do not want the default, simply type over it.

Before you choose Find Backwards, you can highlight a variable or procedure name by clicking on it. If you do not have a mouse, use the arrow keys to move to the desired line and then press <tab> to highlight the desired name.

The keyboard form of this command is "FB text".

*Find from Top prompts you for text to locate in the program's source code. The debugger searches for the text, starting at the top of the current program source. Case is not considered, so you do not have to match the capitalization of the text you want to locate. This is usually a convenient way to find the definition of a COBOL data item.

The keyboard form of this command is "FT text".

*Repeat Find repeats the last Find command, starting at the cursor line.

The keyboard form of this command is "F".

Window Size sets the number of lines to show in the command window. This may be any integer from 2 to 14, inclusive.

The keyboard form of this command is "WS number".

*Watch Size pops up a dialog box which asks for the number of lines to display in the Watch Window. You may enter any number up to 16, which is the maximum number of monitor/watch lines available. A number greater than 16 will return an error message "Invalid size" and a prompt to re-enter the number. The watch window size dialog box (actually titled "Window Size") looks like this:

gt100013.gif

The keyboard form of this command is "WW number".