Preparing an OM or ZOOM to be Debugged

Before you can debug a UCS executable, do the following:

  1. Create a special debug element that contains information that the PADS subsystem uses to call back to the PC at startup.

  2. Statically link the executable to do the following:

Note: All elements that you want to debug must be in the static link. Debugging a dynamically linked OM is not supported.

Write one of the following static links if one does not exist:

  1. Use the Eclipse IDE for OS 2200 facility to prepare the OS 2200 project for interactive debugging.

  2. Compile any OM that is to be debugged with the DEBUG/FULL and NO-OPTIM options, as in the following example:

@UCOB   myFile.UCOBelt,,,,,DEBUG/FULL,NO-OPTIM

Compiling without DEBUG/FULL results in an OM with no debug information, such as line numbers and variables. This causes debugging to stop immediately.  

Compiling without NO-OPTIM has indeterminate results.

Refer to Starting an Interactive Debugging Session for more information when you are ready to start debugging.

Using the Eclipse IDE for OS 2200 Interactive Debugging Facility

To prepare an OS 2200 project for interactive debugging, do the following:

  1. Right-click Project, and select Properties.

    The Properties for selected project is displayed.

  1. Select OS 2200 project properties in the left pane.

    The OS 2200 Project Properties page is loaded.

  1. On the OS 2200 Project Properties page, navigate to the OS 2200 Debug Setup tab in the OS 2200 project properties.

    The following fields appear with default values:

  1. Select the Use Debug Build check box.

    Note: The MASM Debug Element will be generated only if this option is selected.

  1. Click Apply to commit the field values to the project properties.

  1. Click OK to generate the MASM debug element.

    Note:

  1. Select the Use Debug Build check box if you want the OS 2200 to use the build stream from the debug setup.

  2. Clear the Use Debug Build check box after you finish debugging to perform a normal build.

    Notes:

  1. To revert to the default values in the fields, click Restore Defaults.