Well,

The macro allow you to print a debug message which has the filename, line number and the function name. this macro can be enable/disabled using
Qt Code:
  1. #define APP_NO_DEBUG_MESSAGES
To copy to clipboard, switch view to plain text mode 
You can disble/enable the Filename, Function name and the line number
Both the function name and the filename can be short or more descriptive
Qt Code:
  1. # define DEBUG_PRINT_FILEPATH
  2. # define DEBUG_PRINT_SHORT_FN_NAME
  3. # define DEBUG_PRINT_LINENUMBER
To copy to clipboard, switch view to plain text mode 
The output is aligned and the width of the field can be configured
Qt Code:
  1. // file name
  2. # define DEBUG_FILEPATH_LENGTH 27
  3. # define DEBUG_FILENAME_LENGTH 22
  4. #
  5. // Function
  6. #
  7. # define DEBUG_LONG_FUNCTION_LENGTH 40
  8. #
  9. # define DEBUG_SHORT_FUNCTION_LENGTH 25
  10. #
  11. // LineNumber
  12. #
  13. # define DEBUG_LINENUMBER_LENGTH 4
To copy to clipboard, switch view to plain text mode 
so for line
Qt Code:
  1. void foo(){
  2. DEBUG() << "I am here ";
  3. }
  4.  
  5. void foobar(){
  6. DEBUG() << "Yupppy ";
  7. }
To copy to clipboard, switch view to plain text mode 
the output would be

Qt Code:
  1. src/filename.cpp [ 2] void foo() : "I am here "
  2. src/filename.cpp [ 6] void foobar() : "Yuppy"
To copy to clipboard, switch view to plain text mode 
Since the output is aligned, it is easier to comprehend