Debug your DataBlade module

Debugging a C or C++ DataBlade® module consists of the following general steps:
  1. Install the DataBlade module on the database server.
  2. Set breakpoints in your source code file.
  3. Start and attach the debugger to the database server process.
  4. Register the DataBlade module in your test database.
  5. Run SQL queries (unit tests) to test the source code marked with breakpoints.

Debug your DataBlade module in Windows™

If you are debugging C or C++ DataBlade module source code on Windows, you use Microsoft™ Visual C++, the DBDK Visual C++ Add-In, and the IfxQuery tool. The Debug DataBlade Module command of the add-in installs the DataBlade module on the local database server, starts the debugger and database server, and calls IfxQuery to register the DataBlade module and run the unit tests that halt at breakpoints in the source code. The Debug DataBlade Module command functions only if the database server is installed on the same computer on which you are debugging.

Debug your DataBlade module in UNIX™

If you are debugging a DataBlade module on UNIX, you must install the DataBlade module, start the database server and debugger, register the DataBlade module with BladeManager, and use DB-Access to execute SQL statements that halt at breakpoints in the source code.

Debug your DataBlade module in Java™

Debugging a DataBlade module written in Java consists of the following general steps:
  1. Install the DataBlade module.
  2. Start the database server process.
  3. Register the DataBlade module in your test database.
  4. Run SQL queries (unit tests) to test the source code marked with breakpoints.
  5. Examine the Java log file for errors.