How do I use OutputDebugString to print a message that's in a string variable?

前端 未结 3 1521
感情败类
感情败类 2021-02-02 16:39

I recently had to do some changes in some Delphi code. Therefore, I have some basics questions:

  1. Generally, how do I output to the console?
  2. How do I output
3条回答
  •  灰色年华
    2021-02-02 17:36

    In addition to the 2 answers you got about OutputDebugString() and WriteLn(), for debugging there is a better solution: CodeSite from Raize Software (see http://www.raize.com/DevTools/CodeSite/Default.asp ).

    If you have Delphi XE, that should already come with an somewhat reduced functionality version of CodeSite.

提交回复
热议问题