To see detailed trace information on database calls, including actual SQL statements sent to SQLite, a Debug build of your application can turn on or off the following macros in MBODebugSettings.h:
- LOGRECORD_ON_IMPORT – creates a log record in the database for each import of server data for an MBO.
- PRINT_PERSISTENCE_MESSAGES – prints to the console the database exception messages.
- PRINT_SERVER_MESSAGES – prints to the console the JSON headers of messages going to and from the Unwired Server. This allows you to see while debugging that an application is subscribing successfully to the Unwired Server, and that imports are being sent from the Unwired Server. When this macro is defined, the contents of client-initiated “replay” messages are also printed to the console.
- PRINT_SERVER_MESSAGE_CONTENT – prints to the console the full contents of messages from the Unwired Server to the client. The messages include all the data being imported from the Unwired Server, and usually result in a large amount of printing. Developers may find it useful to print all the data during detailed debugging; doing so allows them detailed debugging to see the data coming from the Unwired Server. In general, do not turn this macro on, as doing so considerably slows the data import process.