Hello,
I don't understand the debugging in Qt. I wrote my own little debugging tool which writes my debug texts in a file in the homedir. But I saw there are also Qt debug tools. But where can I see the texts? In a file? Where is that file?
Hello,
I don't understand the debugging in Qt. I wrote my own little debugging tool which writes my debug texts in a file in the homedir. But I saw there are also Qt debug tools. But where can I see the texts? In a file? Where is that file?
Using Qt version 4.3.0
What tools are you referring to?But I saw there are also Qt debug tools.
You can use qDebug to print messages on the debugger console.
Regards
I mean qDebug:
http://doc.trolltech.com/snapshot/debug.html
Where do I find "stderr" or what is it?
Last edited by Voldemort; 12th May 2007 at 11:02.
Using Qt version 4.3.0
stderr is the standard error file handler in C.
http://en.wikipedia.org/wiki/Standard_streams
1) I think they will be showed in the konsole window, is that correct?
2) Can I see it also in a file?
3) I guess you can put debug on/off, how do you do that?
Using Qt version 4.3.0
Yes.
Yes, if you redirect stderr (descriptor no "2") to some file:2) Can I see it also in a file?
./myapp 2> errors.log
http://www.qtcentre.org/forum/f-qt-p...tput-3992.html3) I guess you can put debug on/off, how do you do that?
Please search the forum before asking such questions next time.
I've tested and I have 2 problems:
1) How do you put on/off the debugging in CMake?
2) When I restart my program, the file is emptied and the new text is written in the file. But I want to add the new text at the end of the file. How can I do this?
Using Qt version 4.3.0
1. I think the answer is in your other post.
2. Use >> (append ) instead of > when you redirect the app outpout.
Regards
I try to compile it:
Qt Code:
cmake ../QQMsn -DQT_NO_DEBUG_OUTPUTTo copy to clipboard, switch view to plain text mode
Output:
But what is VAR, type and value? I only has a value (QT_NO_DEBUG_OUTPUT), what are the others?Parse error in command line argument: -DQT_NO_DEBUG_OUTPUT
Should be: VAR:type=value
CMake Error: No cmake scrpt provided.
CMake Error: Problem processing arguments. Aborting.
Using Qt version 4.3.0
Bookmarks