`
Anddy
  • 浏览: 191666 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

debug_print statement

    博客分类:
  • java
阅读更多
今天做了一个SSD 3 的quiz ---debug DNASequence.java 。just spend a  whole morning!真可谓万事开头难!

    虽然才初步了解了eclipse强大的Debugger 的功能,那个Step Into功能(执行程序的下一步)可让你看到程序执行的每一个步骤,现在就不用担心程序是如何运行的问题,多态的问题也可以进一步的了解Step Over的功能(执行源程序中中断的下一条语句)。
有点不爽就是,Step Into以后,就不能回到前一步。

回头看SSD3 教材,Multiple quiz 1 有如下一道题:


As an aid in debugging a program in Java, print statements may be used to display which of the following types of information?


    [1]he names of methods being called
    [2]The values of the parameters of a method
    [3]The values of the instance variables of a class




  (a) I, II, and III
(b) I and III only
(c) I and II only
(d) II and III only

蒙对了,但是对Print Statement 不是很了解,网上的资料也很少。个人理解:打印状态
  • The called methods
  • The value of parameters
  • The value of loop control variables
  • The value of local variables
  • The value of instance variables

   要是能打印每一个步骤的详细执行,那就牛逼,一看打印,就知道什么地方有Debug。

慢慢理解!what is PrintStatement~~how to use It?
分享到:
评论

相关推荐

    acpi控制笔记本风扇转速

    The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total Debug ...

    SQLite数据库 sqlitedll库文件 sqlite驱动JAR包 sqlite工具

    34 // Print some generic debug info 35 System.out.println(e.getMessage()); 36 System.out.println(e.toString()); 37 } 38 } 39 } 代码段2: 1 import java.sql.*; 2 import org.sqlite.JDBC; 3 /** 4 * ...

    Glass Fish帮助手册

    On UNIX, press CTRL-C to kill the server and press CTRL-\\ to print a thread dump. --debug <br>。。。。。。。。。。。。。。。。。。。。。。。。。。。 更多、更详细的内容请下载该文档...

    vm安装macos补丁_unlock-all-v111

    Also Player is missing vmware-vmx-debug and vmware-vmx-stats files and so an error is shown during patching as the files are not found. This can be safely ignored. In all cases make sure VMware is ...

    php.ini-development

    through print or echo. You also may see performance benefits if your server is ; emitting less packets due to buffered output versus PHP streaming the output ; as it gets it. On production servers, ...

    python3.6.5参考手册 chm

    PEP 343: The ‘with’ statement Writing Context Managers The contextlib module PEP 366: Explicit Relative Imports From a Main Module PEP 370: Per-user site-packages Directory PEP 371: The ...

    VMware Unlocker for OS X 1.1.0

    Also Player is missing vmware-vmx-debug and vmware-vmx-stats files and so an error is shown during patching as the files are not found. This can be safely ignored. In all cases make sure VMware is ...

    vmware8 mac补丁

    Also Player is missing vmware-vmx-debug and vmware-vmx-stats files and so an error is shown during patching as the files are not found. This can be safely ignored. In all cases make sure VMware is ...

    Python Cookbook英文版

    1.9 Assigning and Testing with One Statement 1.10 Using List Comprehensions Instead of map and filter 1.11 Unzipping Simple List-Like Objects 1.12 Flattening a Nested Sequence 1.13 Looping in...

    C# for CSDN 乱七八糟的看不懂

    } 运算符和判断 判断 if (x > 10) if (y > 20) Console.Write("Statement_1"); else Console.Write("Statement_2"); 关系运算符 <,,>,>= 等于:== 不等于:!= 判断字符串 string 和 char 用 Equals 方法。 逻辑...

    2009 达内Unix学习笔记

    集合了 所有的 Unix命令大全 ...telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss ... 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ ... 命令和参数之间必需用空格隔...

    Hungry Minds - Visual Basic.NET Visual Blueprint (VBL).pdf

    1)GETTING STARTED WITH VISUAL BASIC .NET An Introduction to Visual Basic .NET ................................................................................2 Install Visual Studio .NET.................

Global site tag (gtag.js) - Google Analytics