LF Fortran 95

Running the Debugger

Providing Program Arguments

Arguments that the debugged program might require must be set before starting the debugger.

You can specify command line arguments by editing the "Command Arguments" property on the "Configuration Properties|Debugging" property page for the startup project.

Setting the working directory

By default, the working directory is the project directory. The user can specify a different working directory by setting the "Working Directory" property on the "Configuration Properties|Debugging" property page for the startup project.

Setting array display limits

The debugger is set to limit the number of array elements that are displayed in order to maintain the responsiveness of the debugger. The display limit can be changed using the Visual Studio Tools|Options menu selection. When the Options dialog appears, scroll down to "LF Fortran", expand it and select "Debugging". Use the "Array Elements Display Maximum" property to change the limit.

Note: Debugger responsiveness degrades as the limit increases, especially when debugging a program with large arrays. If debugging a program with many arrays and a delay is noticed when breaking, responsiveness of the debugger may be improved by setting the limit to a lower value.

Setting the executable

By default, the Solution's startup project will be used as the executable when starting the debugger. The user can specify a different executable by setting the "Command" property on the "Configuration Properties|Debugging" property page for the startup project.

Starting the debugger

There are four ways to start the debugger:

If needed, the program will be rebuilt, the debugger will be started and the program will begin execution. When the program breaks execution, the execution pointer is displayed at the corresponding location in source code.

If the program is a Console application, a console window will appear when the program begins execution.

Terminating the Debugger

When the program has run to completion, the debugger will terminate. To terminate the Debugger while still running, select the 'Stop Debugging' or 'Terminate All' commands from the Debug menu, or click the 'Close' button in the titlebar.