RainbowBS Manual: Chapter5 Debug

RainbowBS

RainbowBS Manual  v0.1.0
Written by QWQ([email protected])
Chapter5 Debug

Debug is important for software development and RBS contains a useful debug component.
Detail references to debug

Debug Features

  • four optional debug levels:none,error,warning,log
  • output re-targeting
  • thread-safety support

Debug Usage

Four types debug macros are available.


How to configure debug component

There are two macro configuration for debug component.

  • RBS_CFG_DEBUG_LEVEL is the configuration for debug level.You can define RBS_CFG_DEBUG_LEVEL from one of the four optional debug levels macros.
    • RBS_DEBUG_LEVEL_NOCHECK disable all debug statement and output
    • RBS_DEBUG_LEVEL_ERRORS only enable debug statement and debug error output
    • RBS_DEBUG_LEVEL_WARNINGS debug warning output plus BS_DEBUG_LEVEL_ERRORS
    • RBS_DEBUG_LEVEL_ALL debug log output plus BS_DEBUG_LEVEL_WARNINGS
  • RBS_CFG_DEBUG_BUFSIZE cofigure the debug buffer size in bytes.Default size is 300 bytes.One output string length should not exceed debug buffer size.

How to port debug component

Generated by   doxygen 1.8.9.1