You are here: User Guide > Concepts > Breakpoints

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 Breakpoint

During 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

 

 

Usage Example

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

 

 

 

Related Links:

Setting Breakpoints

Breakpoints View

Debugging

 

 

©1999-2012 Zend Technologies LTD. All rights reserved.