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 debugging tool.…Once you have your program complied successfully,…you can use the debugger to walk through the code…line by line, evaluating variables…as you go, making changes.…Let's take a look.…We're going to open an existing project…that I have provided in the exercise files folder…called Grades.…There are several ways to use existing code…in your NetBeans application.…In the exercise files folder,…I've only included the Java file…and not the entire project folder.…
So we need to create a new project in NetBeans.…Let's do that first.…File, New Project.…We wanna create a Java project…and we want it to be a Java application…so I'll click next.…And I'm gonna give it a name.…I'm gonna call it Grades.…I'm gonna leave the check mark…so it creates a main class, and click Finish.…NetBeans uses our code template…to provide us with a skeleton…of some of the code necessary to run the program.…Now we can do one of two things.…
Author
Released
6/20/2016- 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
Duration
Views
Related Courses
-
Learning Java 8
with Peggy Fisher3h 9m Beginner -
Java 8 Essential Training
with David Gassner6h 4m Beginner
-
Introduction
-
Welcome56s
-
-
1. A Quick Review of IDE Basics
-
What is an IDE?1m 46s
-
Are IDEs OS dependent?1m 2s
-
Popular IDEs2m 13s
-
-
2. NetBeans IDE
-
Download and install4m 15s
-
Menu navigation3m 19s
-
Shortcuts3m 11s
-
Debugging8m 27s
-
Challenge1m 51s
-
Solution7m 36s
-
-
3. IntelliJ
-
Download and install4m 18s
-
Menu navigation3m 31s
-
Shortcuts1m 32s
-
Debugging7m 31s
-
Challenge2m 6s
-
Solution7m 41s
-
-
4. BlueJ
-
Download and install2m 1s
-
Menu navigation1m 40s
-
Using the code pad3m 2s
-
Debugging6m 22s
-
Challenge1m 26s
-
Solution6m 41s
-
-
5. Eclipse
-
Download and install2m 56s
-
Menu navigation3m 34s
-
Shortcuts2m 27s
-
Debugging7m 26s
-
Challenge2m 3s
-
Solution7m 44s
-
-
6. JDeveloper
-
Download and install2m 59s
-
Menu navigation3m 1s
-
Shortcuts1m 57s
-
Debugging6m 43s
-
Challenge2m 4s
-
Solution8m 7s
-
-
Conclusion
-
Next steps44s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Debugging