文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 电脑基础知识 > COMP5214_Java_2012 Semester 2_ECLIPSE TUTORIAL (2)-Debugging with Eclipse
侵权投诉

COMP5214_Java_2012 Semester 2_ECLIPSE TUTORIAL (2)-Debugging with Eclipse

University of Sydney_COMP5214_Java_2012 Semester 2

COMP5214 Software Development in Java

SUPPLEMENT (2)

SUPPLEMENT – ECLIPSE TUTORIAL (2)

It is normal to make many mistakes as you write programs. Debugging is a cyclic process of editing, compiling, and fixing errors.

“As soon as we started programming, we found out to our surprise that it wasn't as easy to get programs right as we had thought. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs.”

- Maurice Wilkes

This tutorial will help you to become familiar with debugger

COMP5214_Java_2012 Semester 2_ECLIPSE TUTORIAL (2)-Debugging with Eclipse

utility of Eclipse, including setting breakpoints and watching the values stored in variables.

1. Setting Breakpoints

The debugger executes every line until it encounters a breakpoint, and the execution of your program will pause at a breakpoint. You can trace the part of the program at the breakpoint. Using the breakpoint, you can skip over the sections work correctly and only focus on the sections may cause problems. Run Toggle Line Breakpoint (Figure 1).

Figure 1: set a breakpoint

第1页

你可能喜欢

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email