Join Peggy Fisher for an in-depth discussion in this video Stepping through the code, part of Java Essential Training for Students.
- In the last video we already set our Breakpoints,…now for the fun part.…Let's run our program in Debug mode,…so we can see what's happening step by step.…I'm gonna go to Debug, Debug File.…As you can see the program stopped on line 14…before executing the statement.…The debugger has added several additional buttons…to help you with debugging in the top part of our screen.…We have a button to stop, or Finish the Debugger Session,…we can Pause, we can Continue if we want the program…to continue running normally,…we can Step Over, Step Over an Expression,…or Step Into.…
This is the one we'll use the most…to Step Into the code one statement at a time.…And we can Step Out,…or we can Run to wherever our Cursor is.…The other thing that's really nice…is as our program is running and we are debugging…we can watch the window below to see the Variables…and watch how they change.…Down at the bottom I have a new Variables window,…a Breakpoints window,…and right now I only have one Breakpoint set on line 14,…and our Output window.…
- 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?
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.