![](/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.