Join Peggy Fisher for an in-depth discussion in this video Setting breakpoints, part of Java Essential Training for Students.
- Let's start with debugging inside the NetBeans IDE.…I have a grocery project file open.…It's helpful to enable the line numbering feature.…If you don't see line numbers,…go to View, and click on Show Line Numbers.…That toggles the line numbers back on.…Now we can add a Breakpoint.…Breakpoints enable the programmer…to stop and take control of the program execution.…This can be done in three ways.…First, we can right click the number column…on the far left in the editing window.…
So I'm gonna click on line 14.…We can go to Breakpoint, and choose Enabled.…We repeat the same procedure to remove the Breakpoint.…Right click, Breakpoint, and click on Enabled…to deselect it.…The second way to add a Breakpoint,…make sure you have the line selected…where we want to stop.…Go to the top, go to Debug,…and choose Toggle Line Breakpoint.…Now a Breakpoint is set.…You see the red square on the left hand side,…and the entire line is highlighted in red.…
The third option, and probably the easiest,…is to simply click in the grey column area…
- Getting started with parsing
- Reviewing data types
- Using decisions
- Creating user-defined methods
- Command-line debugging
- Exploring the Java API
- Creating and instantiating classes
- Working with interfaces
- Storing items with arrays
Skill Level Intermediate
Q: How can I make my debugger function like the author’s?
1. Command Level Programming
2. Basics Review
4. Java API
5. Simulations and Algorithm Analysis
6. Classes and Objects
7. More on Classes
8. Data Structures
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
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.