Debugging using print statements.
使用print语句进行调试。
Next, we use print statements to help debug applications.
接下来,用print语句帮助调试应用程序。
Let's test this concept of using print statements in PHP.
让我们在php中用print语句来测试这个概念。
Response to the HTTP request is handled using standard print statements.
对HTTP请求的响应是通过标准打印语句来处理的。
Finally, examine the console to see the print statements for the interceptor (Figure 78).
最后,检查该控制台以查看该拦截器的打印语句(图78)。
The strings in the print statements are enclosed in double quotes.
在打印语句中,要打印的字符串需要用双引号括着。
Note that this is a simple script, and is shown as an example in using print statements to debug.
但请注意这是一个非常简单的脚本,只是作为使用print语句进行调试而展示的一个例子而已。
All Ruby code should be copied in as-is, with print statements (for HTML) interspersed as necessary.
所有Ruby代码都必须按原样复制,并根据需要添加print语句(针对HTML)。
The most effective debugging tool is still careful thought, coupled with judiciously placed print statements.
最有效的调试工具是静下心来仔细思考,辅之审慎地放置打印语句。
The print statements we wrote are useful for debugging, but once you get the function working, you should remove them.
我们写得这些print打印语句都是用来调试的,但一旦程序能正常工作了,就应该把print语句去掉。
When you officially release the driver, on the other hand, you should remove, or at least disable, such print statements.
但当你发布这些驱动程序时,你应该移除,或至少屏蔽这些输出语句。
It doesn't matter whether your debugging technique involves using print statements or the full-blown debugger provided by Perl.
不用关心所用的调试技术使用的是print语句,还是Perl提供的完整调试器。
A section of code that represents a command or action. So far, the statements we have seen are assignments and print statements.
声明:一组表示一种命令或者动作的代码,目前我们了解的只有赋值语句和打印语句。
Developers often have tests cases in mind, but they realize them in many different ways: print statements, debugger expression, test scripts.
测试用例通常存在于开发人员的脑子里,但实现起来有不同的方式,如打印语句、调试器表达式、测试脚本。
As you can see, the scripts should be conceptually simple — they are mostly print statements, with other Ruby statements mixed in as appropriate.
正如您所见,脚本的概念十分简单——大部分是print语句,相应地混入了其他Ruby语句。
Another slightly more advanced technique involves using print statements, which can help pinpoint more elusive bugs by displaying what is actually going onto the screen.
另一个略微高级一点的技术包括使用print语句,通过显示在屏幕上实际出现的内容,有助于精确地找出更难发现的bug。
That is, embedded scripting just intermixes code with uninterpreted HTML; the code portion is still responsible for issuing print statements when it wants to say something to the client.
也就是说,嵌入的脚本只是将代码与未被解释的HTML混合在一起;当需要向客户机输出某些内容时,代码部分仍要负责执行print语句。
Because Python requires indentation to offset the block of statements that should be executed if the expression evaluates True or False, the two print statements are both indented four Spaces.
因为Python需要缩进以错开当表达式计算为True或False时应该执行的语句块,所以两个print语句都缩进了4个空格。
Because Python requires indentation to offset the block of statements that should be executed if the expression evaluates True or False, the two print statements are both indented four Spaces.
因为Python需要缩进以错开当表达式计算为True或False时应该执行的语句块,所以两个print语句都缩进了4个空格。
应用推荐