Update Debugging In Intellij authored by Gregory Neibert's avatar Gregory Neibert
The Intellij documentation has a really in-depth explanation of how to use the debugger [(linked here)](https://www.jetbrains.com/help/idea/debugging-code.html#refreshers), so if you desire to use a more complex tool than those explained here, that documentation is a good place to start. However, due to it being very in-depth, a summary for the basic debugger is provided here.
## Basics
The Debugger is a tool primarily used to step through the code to help find the exact location where things went wrong.
### Creating and Removing Breakpoints
Creating a break point is simple:
In order to step through the code, a stopping point (breakpoint) must be set for the debugger.
A breakpoint can be created and deleted simply by clicking to the right of the line number, as shown below.
<p align="center">
<img src="https://i.imgur.com/P1sduNJ.gif"/>
</p>
### Running the Debugger
Once the breakpoints are set, the debugger can be run by selecting whatever it is you desire to run and clicking the bug icon, as shown below.
<p align="center">
<img src="https://i.imgur.com/pGyAdOs.gif"/>
</p>