Debugging hints

When you need to debug a UDR, keep in mind the following considerations:
  • During the development of a UDR, to avoid interfering with the operation of the database server, develop UDRs on the client computer even if they are eventually intended to run from the database server process.
  • Examine the database server log file for messages that the database server generates when it executes the UDR.

    The database server writes status messages to the message log file. By default, this file is named online.log. You can change the name of this file with the MSGPATH configuration parameter.

  • Use the UDR tracing facility to insert trace messages within the body of the function.

    The database server puts these trace messages in a trace file when the UDR executes. For more information, see Tracing.

  • Simplify the UDR to create a good test case.

    Good test cases are as simple as possible.

  • Install and register any required DataBlade® modules

    If your execution environment includes DataBlade modules, you might want to first attempt debugging without these DataBlade modules so that the environment is as simple as possible. However, if this is not possible, make sure that you install and register any DataBlade modules that affect the execution of the UDR you are debugging. To install and register other DataBlade modules, such as the DataBlade modules included with HCL Informix®, see the instructions that accompany them.