CSC 216 F09/eclipsedebug: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
==Debugging in Eclipse, Problem Solving Exercises== | ==Debugging in Eclipse, Problem Solving Exercises== | ||
===The | ===The Problem=== | ||
This exercise will attempt to help students learn how to use the debugging tools in the Eclipse IDE, as well as serve as a good introduction to some basic debugging techniques. There are various example pieces of code that are flawed in some respect, and the error must be found using the Eclipse tools. Because the amount of time it takes in order to use the Eclipse tools for such small exercises, it would honestly be faster to attempt to find the error by eyeballing it. Because of this, this is not a game or a competition, but rather a learning exercise regarding problem solving skills. | This exercise will attempt to help students learn how to use the debugging tools in the Eclipse IDE, as well as serve as a good introduction to some basic debugging techniques. There are various example pieces of code that are flawed in some respect, and the error must be found using the Eclipse tools. Because the amount of time it takes in order to use the Eclipse tools for such small exercises, it would honestly be faster to attempt to find the error by eyeballing it. Because of this, this is not a game or a competition, but rather a learning exercise regarding problem solving skills. | ||
Line 10: | Line 10: | ||
===Participants and props=== | ===Participants and props=== | ||
Hopefully, all students with laptops will participate in this exercise. | |||
The 'props' consists of the various code examples that have various errors in them. These examples may be given to the students via a .doc file on the website, so that all students with a laptop will be able to access them. The code may be copied and pasted directly into an Eclipse .java file. All students should have been previously instructed on how to create a project and Java class in that project using Eclipse, therefore creating a project and copying a file to the class will serve as further reiteration of this concept. | |||
There is no 'answer' to the pieces of code, but rather the fact that the code works properly [i]is[/i] the answer. | |||
===Doing the Exercise=== |
Revision as of 17:28, 16 November 2009
Formatting Resources
Formatting Help Guide from MetaWiki
Debugging in Eclipse, Problem Solving Exercises
The Problem
This exercise will attempt to help students learn how to use the debugging tools in the Eclipse IDE, as well as serve as a good introduction to some basic debugging techniques. There are various example pieces of code that are flawed in some respect, and the error must be found using the Eclipse tools. Because the amount of time it takes in order to use the Eclipse tools for such small exercises, it would honestly be faster to attempt to find the error by eyeballing it. Because of this, this is not a game or a competition, but rather a learning exercise regarding problem solving skills.
Participants and props
Hopefully, all students with laptops will participate in this exercise.
The 'props' consists of the various code examples that have various errors in them. These examples may be given to the students via a .doc file on the website, so that all students with a laptop will be able to access them. The code may be copied and pasted directly into an Eclipse .java file. All students should have been previously instructed on how to create a project and Java class in that project using Eclipse, therefore creating a project and copying a file to the class will serve as further reiteration of this concept.
There is no 'answer' to the pieces of code, but rather the fact that the code works properly [i]is[/i] the answer.