Please note that RTI Connext DDS Micro debug information is independent of a debug build as defined by a compiler. In the context of RTI Connext DDS Micro, debug information refers to inclusion of:
- Logging of error-codes.
- Tracing of events.
- Precondition checks (argument checking for API functions).
Unless explicitly included/excluded the following rule is used:
- For CMAKE_BUILD_TYPE = Release, the NDEBUG preprocessor directive is defined. Defining NDEBUG includes logging, but excludes tracing and precondition checks.
- For CMAKE_BUILD_TYPE = Debug, the NDEBUG preprocessor directive is undefined. With NDEBUG undefined, logging, tracing and precondition checks are included.
To manually determine the level of debug information, the following options are available:
- OSAPI_ENABLE_LOG (Include/Exclude/Default)
- Include - Include logging.
- Exclude - Exclude logging.
- Default - including logging based on the default rule.
- OSAPI_ENABLE_TRACE (Include/Exclude/Default)
- Include - Include tracing.
- Exclude - Exclude tracing.
- Default - including tracing based on the default rule.
- OSAPI_ENABLE_PRECONDITION (Include/Exclude/Default)
- Include - Include tracing.
- Exclude - Exclude tracing.
- Default - including precondition checks based on the default rule.