Debug your DataBlade® module
- Install the DataBlade® module on the database server.
- Set breakpoints in your source code file.
- Start and attach the debugger to the database server process.
- Register the DataBlade® module in your test database.
- 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™
- Install the DataBlade® module.
- Start the database server process.
- Register the DataBlade® module in your test database.
- Run SQL queries (unit tests) to test the source code marked with breakpoints.
- Examine the Java™ log file for errors.