Skip to main content

Problem:

If an rts error occurs COBCONFIG can be used to invoke the animator at the point where the rts error occurs. It is also possible to invoke the system debugger.

Resolution:

This article assumes the user has a working knowledge of the operating system debugger. If not, consult the operating system man pages or vendor.

First, download attached script sysdebug. It may be necessary to modify this script to include the correct debugger for the operating system.  

Install this script in a directory which is on the PATH. In this directory run

     chmod x sysdebug

Then create the file /tmp/debug.cfg with the following lines:

  set debug_on_error=1

  set debugger_command="sysdebug"

and set and export the COBCONFIG environment variable. For example in ksh use:

      export COBCONFIG=/tmp/debug.cfg

If already using COBCONFIG, simply append these two lines to the current cobconfig file.

Then simply run the executable as normal and the correct system debugger will be invoked when the rts error is encountered.

Attachments:

sysdebug

Old KB# 2217