-
Qt debugging
Hi,
I need some advice on how to debug things Qt.
I could run a debugger, but I often prefer to see things printed on screen.
If I would like to print things from my Qt program, to the console in Linux, how do I do this?
Can I do anything similar in windows, or what would you suggest I do in windows?
-
Re: Qt debugging
In linux just use printf or qDebug.
In windows use the same but in project properties( actually in Visual Sudio, i dont know where is set in MingW) Linker->System set in Console (/SUBSYSTEM:CONSOLE)
-
Re: Qt debugging
Thanks, and if someone knows about MingW, please tell us.
-
Re: Qt debugging
When speaking of debugging, is there a way of making the compiler (gcc) to warn about connections beeing made at compiletime that is between signals and slots that doesn't exsist?
it doesn't react on
connect(object, SIGNAL(obviouslymissspeledSignal()),....)
-
Re: Qt debugging
connect returns a boolean; false if the connection is not possible.