To enable core dumps using run-time tunables

  • You cannot enable both Just-In-Time Debugging and Core Dump concurrently.
  • To debug a 64-bit core dump you must first ensure the project is being built for 64-bit, by opening the Project Properties and selecting 64-bit.
  • To create a core dump for an application running under IIS, the application must be run in the same user account as that being used when enabling the core dump feature. For example, a core dump will not be produced for a CGI or ISAPI application running under the default anonymous logon account.
  1. Create a run-time tunables file; see Format of a Configuration File for Native COBOL.
  2. Within the file, include the core_on_error tunable. By default, when a core dump occurs, it is saved with the name cblcore (Windows), or core or core.<pid> (UNIX), but you can change this by also including the core_filename tunable. For example:
    set core_on_error=131
    set core_filename="coredumptest.%p%t_%d"
    Note: For a complete list of parameters for these run-time tunables, see the core_on_error and core_filename topics.
  3. Set the COBCONFIG environment variable to the location of the tunables file. If you are running the application from your Eclipse project, you can set this in your project's Properties dialog box by selecting Micro Focus > Run-time Configuration > Environment Variables, and clicking Add.
  4. Run the application for which you are expecting a core dump file. When the run-time system receives an unhandled signal, a core dump file is created.