From the course: Java 11+ Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Debug with IntelliJ IDEA

Debug with IntelliJ IDEA - Java Tutorial

From the course: Java 11+ Essential Training

Start my 1-month free trial

Debug with IntelliJ IDEA

- [Instructor] Before continuing on with our tour of the java programming language, I'd like to show you some tools that are available in IntelliJ IDEA for debugging your code. The first and most important tool to know about is called the break point. A break point is an instruction in your development environment that says when I get to this line of code, suspend the application. While the application is suspended, you can inspect variables and see what their values are. In IntelliJ IDEA, you can add a break point, just by clicking in this area, known as the trough, right next to the line number. And you'll see this dot show up. Now, when I run the application and reach that line of code, the application will suspend. To make this happen, go to the toolbar and click on this little button that has an illustration of an insect, that means you're going to debug the main class. You could also get there by choosing run, debug,…

Contents