To debug a program, let's open an existing project that I have provided in the exercise files folder called Grades. Now that we have the project setup, lets run it once without debugging turned on. As you can see, we have a problem with the logic in our program. It might not be obvious how to fix the program and that is where the debugger is a great tool to get familiar with!
- [Voiceover] One of the big benefits…of using an integrated development environment,…is the ability to use the Debugger…to walk through your code.…Eclipse is no different.…To use the debugger,…we're going to open an existing project…that I have provided in the Exercise Files folder…called Grades.…Now there are several ways to use existing code…in you Eclipse application.…In the Exercise Files folder,…I have only included the Java file,…and not the entire project,…so we need to create a new project in Eclipse,…and then either copy and paste the code into our new file,…or we can use Windows File Explorer…to copy and paste the file…into our Project Folder.…
Let's go ahead and create a New Project first.…File, New,…Java Project.…I'm going to call it Grades,…and click Finish.…The program is designed to ask the user…to enter in a numeric raw score,…and then it will convert that…to a letter grade, and provide the user…with some feedback.…In the Package Explorer on the left,…I'm going to open up the Grades folder,…and we can see, there is a SRC folder,…
- What is an IDE?
- Viewing and organizing files in an IDE
- Downloading and installing different IDEs
- Coding with shortcuts and autocompletion
- Using templates
- Finding and referencing files
- Debugging Java code in an IDE
Skill Level Beginner
1. A Quick Review of IDE Basics
2. NetBeans IDE
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.