Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No application output in QtCreator debug

With QtCreator 2.8 under Win7 with CDB debugger, I cannot see in the Application Output tab all my fprintf(stdout) stuff !?

I tried:

fprintf(stderr, "...");

fprintf(stdout, "..."); fflush(stdout);

Nothing happens. In the meantime, If I check the "Run in terminal" option, it works !?

Although I noticed that all the output go to debugger log !?

Any idea ?

like image 632
Stef Avatar asked Jun 30 '13 09:06

Stef


1 Answers

As a workaround you can enable the output in CDB console: tools/options/debugger/cdb then check "Use CDB console". To show the debugger, right click on some window header and select "Debugger Log". You may also right click on the debugger log view to disable the verbose log. Btw, I also noticed that the standard application output window works well when you "attach to the running process" instead of starting it from qtcreator.

like image 137
Cyrion Avatar answered Oct 04 '22 02:10

Cyrion