Dear all,
I am trying to print out some outputs defined by my own in different function calls and classes into a debug file, I saw in one source code using macros like:
#ifdef DEBUG_OUTPUT
#define debug2 printf
#else
#define debug2(arg1,...)
#endif
and with a call to this macro like: debug2("This is the debug output\n");
Can anyone please tell me where is the printed output go? I wish to write some of my own defined outputs from different functions(which from different classes) and write them into a file so that I can follow the order of the function calls and hence how the program works.
So is it possible to use this type of debug macro or anyone please suggest me an alternative?