Breakpoints

Breakpoints allow you to set places in the code at which the debugging process will pause. Setting a breakpoint in your script will cause the debugger to stop at the specified line, allowing you to inspect it.

Breakpoints are represented by a blue ball in the vertical ruler to the left of the editor.

Set BreakpointDuring the debugging process, breakpoints can be monitored in the Breakpoints View.

Conditional Breakpoints

Conditions can be added to breakpoints so that the debugger will only stop at them under certain conditions. These can be any valid boolean expressions.

Conditions can be added to breakpoints through the PHP Conditional Breakpoints Properties dialog. Conditional Breakpoints are represented by a blue ball with a question mark.

Conditional Breakpoint

Example:

If a breakpoint has a condition of "$var > 5", the debugging process will stop at the breakpoint only if the value of $var is greater than 5.

PHP Conditional Breakpoint