Use code to demo a color print function for debug use, meanwhile, show how to setup a easy development way under Linux with VIM, makefile and shell script
- study how to impelmente debug print method under Linux
- study makefile
- study coding with vim/cscope/YCM
- split print to different module, easy to filter
- colored print, easy to identify
- leveled print, easy to control
- Automatically detect OS arch in Makefile
- Delivery debug print function as a LIB
- Optimize code
make DEBUG=YES && make test
or./post_test.sh DEBUG=YES
make DEBUG=YES && make test && make testcov
- just remove
DEBUG=YES
during make, or - configure in code by function
DbgConfig(group, level)