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] With any of the IDEs…that we've gone over so far,…one of the big benefits…of an integrated development environment…is the ability to use the debugger.…I want to show you how to use the debugger…in the Oracle JDeveloper IDE.…We'll create a new Java Application,…and then we'll use code that I already have written…in the exercise files folder…to run a program that asks the user…for a numeric grade.…It uses that grade to evaluate to a letter grade…and presents a message back to the user.…
Let's start by creating a new project.…File, New, Application.…Click OK.…And, we'll call it Grades,…and click Next.…The Project Name, I'm also going to call Grades.…I'm going to click Next…and I'm going to leave the Default Package,…Source Path, and Output Directory…and click Finish.…Okay, in the left-hand side here,…I want to be able to see my Project folder.…There we go.…Now, I want to add the file…that's in my Exercise folders.…
So, in JDeveloper, we can actually import that file.…So, let's go to File, Import.…I want to import a Java Source file.…
- 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.