LF Fortran 95

Displaying Debug Information

The debugger can display the following information:

The displayed debug information is updated at the following times:

Displaying Local Variables

To examine all local variables within the scope of the current procedure, open the Debug menu and expand the "Windows" item. Select "Locals" from the "Windows" sub menu. The locals window will appear:

Note: Display of large arrays are limited in the locals window. To examine large arrays, use a watch window and specify an array section optionally with a skip count.

Watching Variables

To watch a variable within the scope of the current procedure, open the "Debug" menu and select "QuickWatch". A dialog will appear that allows you to type the name of the variable you want to watch. If the name matches a valid variable in the program, it will be added to the watch list.

Note: If whole large arrays are specified for display, there is a limit to the number of elements that will be displayed. When this occurs, it is advised to use array sections and skip counts to examine array information. Array sections and skip counts are specified using Fortran syntax.

To view a watch window, open the Debug menu and expand the "Windows" item. Select "Watch" from the "Windows" sub menu.

A watch window will appear:

Displaying Values With Intellisense

While debugging, variable values are added to the intellisense "Quick Info" display, which allows values to be examined by hovering the mouse over the variable in question.

Variable contents are not displayed when any of the following is true:

To delete a variable from the watch list, do one of the following:

  1. In the watch window, highlight the variable name to be deleted and press the keyboard Delete button.
  2. In the watch window, right click the mouse on the variable name to be deleted and select "Delete Watch" from the context menu.

Changing Values

To change the value of a variable, either in the locals window or the watch list, do one of the following:

  1. In the watch list or locals window double click on the value field the variable name to be changed and type in the new value.
  2. In the watch window, right click the mouse on the variable name to be changed and select "Edit Value" from the context menu.

Examining Stack Frames

To display the current stack frame, open the Debug menu and expand the "Windows" item. Select "Call Stack" from the "Windows" sub menu.

Other frames can be examined by double clicking on them in the "Call Stack" window, or by right clicking on the frame to be examined and selecting "Switch To Frame" from the context menu. The program pointer will display the source line for the specified frame. Variables within that frame are in scope and can be examined.

Displaying Program Output

When a debug session is in progress, if the program is a console application, a console window is provided for output, otherwise, whatever UI window that is programmed will be visible.