Not getting any output message in my Compile Output Window even when my program gives the desired output.
-
Hi All,
I'm experimenting with painting in Qt creator for the Widget application. My program gives the desired output but I've put a debug message somewhere in the middle of the program to check the runtime value of a variable but it doesn't show any value in the compile output window. What might be the reason for it?
Can someone tell me how to get the values of the variables or qDebug() << "This message" messages in the compile output window while working for a Widget application?
Thanks in advance!
-
@Swati777999 Do you build in debug mode?
Are you sure the code where the qDebug is is actually executed? -
Hi,
The compiler will not output runtime message hence your message will not appear in the compile output window.
What exactly are you looking for ?
-
@Swati777999
qDebug()
messages appear when your code is run. They go to the Application Output window, or I believe to somewhere funky and hard-to-get-at if you are running under Windows. Is that your situation?If you are talking about a message to be issued when compiling your code, you will need a "directive" understood by your compiler, like
#warning "This is a warning"
(GCC) in your code, and that would go to the Compile Output Windows.