This section describes starting and stopping WinFDB from Visual Studio or without involving VS.
First, set the 'Use WinFDB' option to True on the 'LF Fortran' Debugging page by selecting Options from the Tools menu.
There are three ways to start the WinFDB debugger from Visual Studio:
If needed, the program will be rebuilt, and WinFDB will be started in a separate window.
If the program is a Console application, a console window will appear when the program begins execution.
Type WINFDB followed optionally by the name of the executable file to be debugged:WINFDB [filename]
Unless the full path of filename is provided, WinFDB will assume it resides in the current working directory.
Using Windows Explorer or the 'My Computer' folder, locate the
program that you want to debug.
If a WinFDB icon is present on the desktop,
WinFDB should start with the executable ready to debug, and will look similar to this:
At this point, if needed, you can specify any command line arguments that the program being debugged might require using the 'Set Options' selection from the 'Program' menu:
When this option is selected, the 'Set Options' dialog appears:
Set command line arguments in the 'Program Options:' textbox and press the OK button. The command line arguments will be retained for the duration of the debugging session.
At this point, press the 'Go' () toolbar button. The debugger runs through the startup code, displays the source code for the main program and stops upon entry to the main:
Terminate the Debugger by selecting the 'Exit Debugger' command from the File menu in the debugger window, or clicking the 'Close' button in the titlebar.