How can I see cout output in a non-console application?

后端 未结 8 2178
醉话见心
醉话见心 2021-02-06 22:10

It seems rather tedious to output to debug window. Where can I find cout output if I am writing a non-console information ?

Like:

double          


        
8条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-06 22:38

    The question is very clear. How use std::cout to debug a non-console application in Visual Studio.

    The answer is very clear: you cannot. That is, Visual Studio does not support std::cout as debug tool for non-console applications.

    This is a serious limitation of Visual Studio, probably a failure to meet the C++ standard even. I find it very sad to see disinformative "answers" here trying to hide this defect of their precious Visual Studio.

提交回复
热议问题