Join Peggy Fisher for an in-depth discussion in this video Using the debugger, part of Learning Java.
- Our programs have been very simple so far…and easy to find the errors,…but as we start making more complex programs,…it is important to know how to use a debugger.…Most IDEs have built-in debugging tools.…The advantaging of using this debugging tool…is that it allows us to control each step in the program,…and we can watch the Variables as they change.…As you can see, I have our Travel Costs project file open,…and it's helpful to enable the line numbering feature.…If you don't see line numbers,…go to View,…and toggle Show Line Numbers.…
Now, the first thing we want to do…is add what we call a Breakpoint,…which will tell the computer where we want to stop.…There's two ways to do that.…We can right click the number column…on the far left in the editing window.…So let's go ahead and do that right here at the beginning.…I'm gonna right click on the line 20.…I'm gonna go to Breakpoint,…and Toggle Line Breakpoint.…You can see the entire line…is now a pinkish, reddish color,…and there's a box in replace of the number on line 20.…
- Downloading and exploring NetBeans
- Understanding Java basics: data types, strings, arrays, and more
- Controlling flow with functions and loops
- Creating classes
- Sorting and searching arrays
- Manipulating files
- Handling errors
- Building GUIs
Skill Level Beginner
1. Getting Started
2. Java Basics
3. Flow of Control
4. Classes and Objects
5. Beyond the Basics
6. File Manipulation
7. Graphical User Interface Basics
- 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.