Add tracing and error handling
To add tracing and error handling to the generated source code, edit the generated source code file and insert DBDK_TRACE macro calls.
The following table describes the tracing and error handling
macros.
Macro | Action (if tracing is enabled) |
---|---|
DBDK_TRACE_MSG() | Prints a message in the trace file. |
DBDK_TRACE_ERROR() | Prints a message in the trace file and raises an error by calling mi_db_error_raise(). |
DBDK_TRACE_ENTER() | Prints a message in the trace file upon entering a routine. |
DBDK_TRACE_EXIT() | Prints a message in the trace file upon exiting a routine. |
The macros are described in the following sections.