Add a Breakpoint

Add breakpoints when you get an exception in your code.

When you run your code and get an unhandled exception, you can click Create breakpoint in the Run window to add a breakpoint to your code. In the Breakpoints popup, set the desired configuration for your breakpoint and click Done. Debug your code using the shortcut ⌃D (macOS) / Shift+F9 (Windows/Linux). Code execution will stop at the breakpoint, and you can examine the state of your application in the Debug tool window.

Interested in JVM Development?

call to action image

Adding a breakpoint is just the start of the journey!

Learn More


Related Resources

Create a new class
Create a new class
Create a new class and a new package.
Find Next Word
Find Next Word
Find next word and highlight all instances.
Presenting with IntelliJ IDEA.
Presenting with IntelliJ IDEA.
Tips & tricks to level up your presentation skills with IntelliJ IDEA.