Debug with PHP exception breakpoints

Last modified: 28 June 2024

With PHP exception breakpoints, the debugger suspends execution of the application code when an exception or an error is thrown or when a PHP notice or warning is emitted.

Unlike line breakepoints, which you have to set to specific lines in the source code, the configured exception breakpoints apply globally across the codebase. When an exception breakpoint is hit, PhpStorm adds the icon to the respective line of code automatically.

Hitting an exception breakpoint