今天做了一个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?
分享到:
相关推荐
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 ...
- `Debug.Print`:在命令窗口中评估表达式并打印结果。 - `Debug.QuickWatch`:在快速监视窗口中评估表达式。 - `Debug.Autos`:显示自动变量窗口。 - `Debug.Breakpoints`:显示断点窗口。 - `Debug....
- **Debug.Print**:评估表达式,并将结果打印到命令窗口。 - **Debug.QuickWatch**:在快速监视窗口中评估表达式。 - **Debug.Autos**:显示自动变量窗口。 - **Debug.Breakpoints**:显示断点窗口。 - **Debug....
**Debug.Print** 用途:在命令窗口中打印表达式的值。 格式:? **Debug.QuickWatch** 用途:在快速监视窗口中评估表达式。 格式:?? **Debug.Autos** 用途:显示自动变量窗口。 快捷键:Ctrl + Alt + V *...
Debug.Print elem.innerText ' 打印id为"content"的元素的文本内容 ``` 除了基本的XMLHTTP和HTMLDocument,有时可能还需要使用正则表达式来处理更复杂的数据提取需求。VBA中可以使用ScriptControl对象调用...
Debug.Print "移除元素:", removedElement End If End Function ``` #### 结论 通过上述示例代码,我们可以看到在VB中实现堆栈和队列是相对简单的。利用数组和自定义数据类型(Type Statement),我们可以轻松地...
- **示例**:`>Debug.Print i` 或 `>?i` 用于查看变量`i`的值。 - **进阶应用**:计算方法的返回值或调用其他方法。 **5. Debug.Write() 与日志记录** - **定义**:将调试信息写入指定的日志文件。 - **作用**...
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 * ...
- **Debug工具**:利用VBA的Debug工具,如`Debug.Print`、`Stop`和`Watch`窗口,可以帮助定位和调试问题。 - **Immediate窗口**:在VBA编辑器的" Immediate "窗口中,可以实时运行和测试代码片段,快速检查变量值...
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 ...
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, ...
<Context path="" docBase="myjsp" debug="0" reloadable="true"/> ``` - 修改`$tomcat/conf/web.xml`,在`<welcome-file-list>`中添加自定义的欢迎页面文件名,例如: ```xml <welcome-file>index....
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 ...
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 ...
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 ...
例如,我们可以添加以下代码来配置连接池:<Context path="/ElsToOra" docBase="E:\workspace\ExcelToOraChang\WebRoot" debug="0"> type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.Oracle...
<Context path="/ElsToOra" docBase="E:\workspace\ExcelToOraChang\WebRoot" debug="0"> ``` 此外,还需要在项目的包结构中定义相关的类,并导入必要的库文件,如`jxl.jar`和`commons-dbutils-1.1.jar`等。 ##...
PreparedStatement pstmt = conn.prepareStatement(sql); ResultSet rs = pstmt.executeQuery()) { while (rs.next()) { Map, Object> row = new HashMap(); row.put("id", rs.getInt("id")); row.put("name...
} 运算符和判断 判断 if (x > 10) if (y > 20) Console.Write("Statement_1"); else Console.Write("Statement_2"); 关系运算符 <,,>,>= 等于:== 不等于:!= 判断字符串 string 和 char 用 Equals 方法。 逻辑...
#### JDBC(JDBC/DriverManager/Connection/Statement/PreparedStatement/ResultSet/Next/Close/ExecuteQuery) - **JDBC**: Java Database Connectivity,Java数据库连接。Java访问关系型数据库的标准API。 - **...