How can I write to the console window for debugging?

后端 未结 4 1888
南笙
南笙 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:45

    Delphi has got an option for this, check "Generate console application" in the linker options for the project. Standard I/O will be directed to a console window which will accompany your GUI application. Then you can use Writeln etc. as you normally would.

    Read Output (or Input) from the docs:

    Delphi programs have a standard output file if they are linked as console applications.

提交回复
热议问题