Make life easier
- A series of macros that may or may not make your life easier.
- A series of macros that print out info in
stderr
stream.
DEBUG_PRINT
: print whatever you want with DEBUG_PRINTENTER_FUNC
: manually call it whenever entering a functionLEAVE_FUNC
: manually call it whenever leaving a function
- Include
debug_print.h
in whatever file you want to debug - Add printing statements in your file
- Compile program with
-DDEBUG
flag - Run and see results