In this video, learn about various ways to debug code. Learn how to use watch windows and breakpoints in addition to stepping in and out of code.
- [Instructor] NetBeans has a fairly advanced debugger…but for the most part, there's going to be common features…of it that they use most frequently…and that's what I want to go over.…So, to demonstrate, let's go ahead and create a new project.…We will make this a Java Application.…I'll choose Next here and then we will call this…Debugging_Console.…
And choose Finish.…Now, within here,…I'm going to go ahead and paste in some code.…And let's go through what I have here.…Okay, for the first line,…it simply is going to print out, hi.…For the next line, I'm assigning the variable…year underscore 2080, with a value of 2080,…and we see a squiggly line here,…and the reason why, let's take a look.…
It says that the variable is not being used,…so let's go ahead and fix that by actually…using it.…On line 22, I reference 2080.…And there, so now I'm referencing the variable,…and so now that complaint is gone.…The following line, 20, I'm doing a similar thing…except it's for year_2085.…
That's the variable name, and I'm adding,…
- What is NetBeans?
- Creating templates
- Importing and exporting projects
- Debugging code
- Creating a project
- Creating a GridPane layout
- Creating the UI
- Deploying and executing an app
- Organizing the environment
Skill Level Beginner
1. Intro to NetBeans
2. Templates, Projects, and Debugging
3. Managing Services
4. Desktop Development: JavaFX
5. Web Development - PrimeFaces
6. Working with Clean Code
- 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.