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

后端 未结 8 2161
醉话见心
醉话见心 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条回答
  •  梦毁少年i
    2021-02-06 22:42

    You can use .Net functions such as System::Diagnostics::Debug::WriteLine("your message"). You can even add a condition to print only during the debug mode and not in the release mode. For example:

    #ifdef DEBUG   
       System::Diagnostics::Debug::WriteLine("your message");
    #endif   
    

提交回复
热议问题