Join Peggy Fisher for an in-depth discussion in this video Troubleshooting with debugging, part of Java Essential Training for Students.
- The ability to successfully debug a program is one of the best tools to have in your toolbox of programming skills. There are two main types of errors that we will review, both Syntax Errors and Logic Errors. A Syntax Error occurs when we make a mistake in our coding, such as forgetting a semicolon to indicate the end of a statement or maybe mistyping. A Logic Error is sometimes harder to find. This occurs when we have all the correct Syntax, but we coded a portion of the program with an error, such as possibly dividing by zero.
Most IDEs or integrated development environments, have built-in debugging tools. The advantage 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. Later in this section, we will also review how to debug your program from a console window using command line debugging.
- 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.