Debugging and testing DataBlade modules on UNIX
This section describes how to debug and perform functional tests for DataBlade modules written in C for Informix® on UNIX.
- Prerequisite tasks
- Prepare your environment on UNIX
Test and debug your DataBlade module in a nonproduction HCL Informix database server environment because debugging interferes with the operation of the database server. - The shared object file
A DataBlade module exists in the HCL Informix database server as a shared object. The shared object file is loaded into the database server the first time one of its routines is executed after the database server is started. The shared object file is unloaded every time the database server is stopped. - Install and register DataBlade modules
Installing a DataBlade module places the files of the module in a subdirectory of the $INFORMIXDIR/extend directory; registering a DataBlade module adds the module to a database. You must install and register before you can test or debug a DataBlade module. - Debugging a DataBlade module
Debugging a DataBlade module is usually an iterative process, repeated many times until the code is debugged. - Debugging a UNIX DataBlade module with Windows
Debug a UNIX DataBlade module from your Windows computer by logging in to a UNIX computer from your Windows computer and running the debugger in a telnet session or an X window emulation program. - Performing functional tests
When you generate functional tests, BladeSmith creates a set of files that include shell scripts and SQL scripts for testing opaque data type support routines, user-defined routines, and cast support functions. By default, these files are created in the functest subdirectory of the directory containing the BladeSmith project file.
Parent topic: DataBlade Developers Kit User's Guide
Related concepts: