How can I write to the console window for debugging?

后端 未结 4 1893
南笙
南笙 2020-12-13 19:10

Can I display the result of a loop in the console window in a VCL application for debugging purposes?

4条回答
  •  情书的邮戳
    2020-12-13 19:47

    If you wrote the console application, you can try OutputDebugString function in the console application (I didn't try).

    Or you can capture the output of the console application like in Capture the output from a DOS (command/console) Window .

    Also, you can check Console Application Runner Classes. I use these classes. I think they are great.

提交回复
热议问题