To Create a Live Recording File from the Command Line

Restriction:
This feature is only supported on the following platforms:
  • Red Hat Linux (x86 and x64)
  • SUSE Linux Enterprise Server (SLES) 12 SP2 (x64 only)

Additional restrictions apply. For details, see the Reverse Debugging and Live Recording topic in the Known Issues and Restrictions > Problem Determination and Diagnostic Tools section of this documentation.

  1. From a shell prompt, set the COB_LIVE_RECORD environment variable to the path and filename of the intended file:
    export COB_LIVE_RECORD=path/and/filename
  2. Run the application from the shell prompt:
    cobrun [switch-params] program-name [program-params]

    See the cobrun Command topic for a full explanation of the syntax.

When the application terminates, a recording file is created at the path specified, and with the filename appended with <processID>.mfr; for example MyProg.1884.mfr. You can now use this file on another machine to step through the recorded execution.