Qt how to add a print message, to determine the source program of Bug

I ask that I in accordance with the online method to define the print function of their own, is the site.,
Engineering adds a print function header file, and then in the main () function to add:
SHINE_dprintf("%s, %x, %s, %f", "Just for test", 100010, "abcdefg", 1.23234);
SHINE_dputs("Just for test too");
Prompts the error C2010: "in VS2008.": macro parameter list.
1 do not know is what reason?
2 what can be directly compiled with VS2008 without qmake compile and run it?
3 this by adding the print news is how to determine the Bug source program?
Contact Qt time is not long, seeking God with us~

Started by Nick at December 16, 2016 - 10:07 PM

__FILE__, __func__, __LINE__ is the current GCC Jianhong, file, the function and the current line.

Posted by Rudolf at December 27, 2016 - 10:09 PM

VC __FILE__ __LINE__ and __FUNCTION__
The qmake is used to control the conditional compilation. Can directly use the qDebug (<); <"This is message", more convenient

Posted by Rudolf at January 07, 2017 - 10:26 PM