Breakpoints pause execution at specific lines. In the Sources panel, click a line number to set one.
When paused, you can:
- Inspect variable values
- Step through code line by line
- See the call stack
- Evaluate expressions in console
Breakpoints are more thorough than console.log for complex bugs.