| Amazonasmann (4) | |
|
Hello Guys im fairly new to C++.. every Good Code need its debugging, so i was just wondering : which method is best for debugging? Which Debugging Framework do you use? ATM im using QT GUI, and develop in Visual Studio..i would like to have my GUI window open, and another Console Window which gives me debugging info like "button 1 pressed" or "input is : newkqeq " Any Ideas ? Thanks! | |
|
|
|
| JLBorges (1752) | |||
Write a "Console Application" with an int main(). And put your GUI code in that.You would then have std::cout, std::cerr and std::clog .
| |||
|
|
|||
| Amazonasmann (4) | |||
hmm..i dont get it, so a simple QT Window looks like this :
that opens a simple GUI Window with nothing in it. Now i want that i have a second window, only a Console window like i have when i do cout <<"some stuff" Edit : with qDebug(" a String") i can write something to the Visual studio window..but i just want a normal console window :-/ | |||
|
Last edited on
|
|||
| JLBorges (1752) | |
In your .pro file, add the line CONFIG += consoleOr in the file containing int main(int argc, char *argv[])add the line #pragma comment( linker, "/SUBSYSTEM:console" )
| |
|
|
|
| Amazonasmann (4) | |
| yeah, thats it! thx! | |
|
|
|