This chapter lists differences in facilities for editing and debugging that might require you to change familiar methods of working when you move from COBOL Workbench to Mainframe Express.
Where in COBOL Workbench you would use Animator V2, you use the Integrated Development Environment (IDE) in Mainframe Express. All editing and debugging is done in the IDE.
The IDE resembles Animator V2 in being a graphical interface where you can open one or more windows containing files to edit or debug (though the IDE does much more besides). No distinction is made between opening for editing and opening for execution. Opening a COBOL file or copybook opens the same kind of window - called a text window - whether you are editing or debugging.
The term animating is not generally used in Mainframe Express - the term debugging is used instead.
Because the IDE is the interface to all functions in Mainframe Express, the functions for editing and debugging have been collected together onto just four of the pulldown menus - Edit, View, Search, and Debug. These menus may contain other functions as well. However, if you look through these menus you should find it easy to recognize the familiar editing and debugging functions.
This section advises on what to use where an Animator V2 feature is not in Mainframe Express or has changed. Where we believe you can continue using a feature without change, it is not mentioned. This book does not cover enhancements.
Function to count the number of times a statement has been executed.
Function to show the path that execution has taken through the program up to the point where you are currently paused.
Use Call Stack on the Debug Windows submenu of the View menu to display the Call/Perform stack. This gives a dynamic view of the current execution path. It works across programs, shows Assembler modules loaded as part of the application, shows even programs that are not currently compiled for debugging, doesnt have to be enabled before use, and doesnt have a limit on the amount of history shown.
Facility in CSI to search for occurrences of a COBOL item (for example, a data item or procedure name) or items.
Although it does not provide all of this functionality, you can use Find COBOL Item on the Search menu.This displays size information for the COBOL item on the status line at the bottom of the IDE's main window.
Keystrokes to invoke functions. Examples are Shift+Del to cut, Shift +Ins to paste, F4 to delete a line, F6 to restore a line, and Alt+F4 to save.
Available for backward compatibility. By default, Mainframe Express uses Microsoft-standard keyboard shortcuts.
You can load a Micro Focus keyboard scheme. To do this, select Customize IDE from the Options menu, then select the Keyboard Configuration tab. Click Load Scheme, and select mf.key and click OK. You can then use the old style shortcuts.
To become familiar with the new standard, go to the Keyboard Configuration page as above, and review the mappings in there. You can enter a key sequence in the Press new shortcut key field to see the mapping of any key combination.
On the menus, each function has its equivalent toolbar button and/or shortcut key listed alongside.
There is a list of the two sets of shortcuts in the Reference section of the online help.
In Windows 95 and Windows NT, Alt+F4 terminates the application. So with the new standard, pressing Alt+F4 closes the IDE.
Function to execute at a set speed, showing the flow of control through a source program by highlighting each statement as it is executed.
Included, but you cannot vary the speed.
Facility to mark a column of text using the mouse.
Included. To enable this option, click Edit on the Options menu, then click the Blocks/Clipboard tab. Select Select column blocks when dragging, except when in the prefix area, and click OK.
With this option set, dragging the mouse selects a rectangular block. Without this option set, dragging the mouse selects all text between the start and end points.
Facility to bring up a command prompt within Animator V2 (by pressing Ctrl+F11), where you can enter edit commands..
Functions to execute without debugging up to the return from the current procedure (Run Return), and through the procedure executed by the currently highlighted PERFORM statement (Run Thru).
Both included, but with a restriction. You cannot use them when debugging optimized (.gnt) COBOL programs compiled with a mainframe dialect, because these dialects have OSVS-style PERFORMs, which invalidate these functions.
Facility to generate line numbers down the left-hand side of a COBOL source file.
Function to display the values of all the fields used in a statement before and after stepping that statement.
Included, but known as the Watch list.
Copyright © 2001 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.