The debugger can display the following information:
The displayed debug information is updated at the following times:
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.
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:
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:
Variable values can be changed by using a watch window. Variable values cannot be changed from the locals window. To change the value of a variable, first add it to a watch window, then do one of the following:
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.
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.