![](/img/trans.png)
[英]Does Delphi XE2 correctly import WSDL from Java/Axis2 when function has no return value?
[英]Print in the console in Delphi Xe2 like in Java
我是第一次開發Delphi項目,我以前用Java開發。
有沒有辦法像在java中一樣在delphi的控制台中打印。
System.out.println("Message");
我用來測試代碼和發現bug(原始)。
您必須使用Writeln
(僅適用於控制台應用程序)。
{$APPTYPE CONSOLE}
begin
Writeln('Hello');
Readln;
end.
如果要在IDE的事件日志中放置一個字符串,可以使用OutputDebugString
函數。
我通常使用以下代碼來“調試”我的程序。
showmessage('Hello World');
那是我怎么做的.. :)
對於調試消息,還有可以使用GX_DbugIntf中的SendXXX過程編寫的GExperts控制台。 該單元是SourceForge上提供的GExperts源代碼的一部分。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.