1. Build the project.bld file with debugging support (if necessary). To debug a DataBlade module, the dynamic link library file must be compiled as a debug version so that debugging symbols are available to the database server.
2. Install the project.bld file and the contents of the scripts directory in the %INFORMIXDIR%\extend\project directory.
3. Set the attributes of the project.bld file as read-only so that it can be loaded by the Informix database server. If the project.bld file is not read-only, the database server issues an "unable to load function" message in the online.log file.
unable to load function
4. Start or shut down and restart your Informix database server from the Services application in the Control Panel. Do not start the Informix messaging service; it is started automatically by the database server.
5. Register the DataBlade module, using BladeManager (if necessary).
6. Load the DataBlade module by calling one of its routines from DB-Access or SQL Editor.
7. Start Microsoft Developers Studio Visual C++.
8. Start the debugger and attach to the database server process (oninit).
9. Open one of the source code files in Microsoft Developers Studio.
10. Set appropriate breakpoints.
11. Issue SQL statements to call your DataBlade module routines and step through the code to identify bugs.
12. Stop the debugger and shut down the database server.
13. Edit the source code (if necessary).
14. Repeat the procedure, as necessary.
1. Open the Windows Task Manager window and find the process ID for the oninit database server process.
2. Execute this command from the MS-DOS command prompt:
1. Choose Build Start Debug Attach to Process. The Attach to Process dialog box appears.
2. Select the Informix database server process, oninit.
3. Click OK.
1. Open a source code file.
2. Right-click a routine on which you want to set a breakpoint.
3. Choose Insert Breakpoint.