You are here: User Guide > Tasks > Debugging Files and Applications > Setting Breakpoints

Setting Breakpoints

Before you debug your scripts, you can set breakpoints in them to specify places in your code where the debugging process will pause.

These procedures demonstrate how to set line and conditional PHP breakpoints.

Setting a Breakpoint in Your Script

 

 

Instructions on how to complete a procedure

To set a breakpoint in your script:

Double-click the vertical ruler to the left of the line where you want to set the breakpoint -or- select the line and go to Run | Toggle Breakpoint or press Ctrl+Shift+B.

 A blue ball will appear, indicating that a breakpoint has been set.

Set Breakpoint

Adding a Condition to a Breakpoint

 

 

Instructions on how to complete a procedure

To add a condition to a breakpoint:

  1. Right-click the breakpoint in the vertical marker bar and select Breakpoint Properties...

Breakpoint Properties Selection

The PHP Conditional Breakpoint dialog opens.

  1. Enter the required condition and ensure the Enable Set Condition checkbox is marked.

PHP Conditional Breakpoint Properties

  1. Click OK.

The condition will be set for the breakpoint and the debugging process will pause only if the condition is met.

The breakpoint will be represented by a blue ball with a question mark.

Conditional Breakpoint

 

 

Related Links:
Breakpoints

Breakpoints View

Debugging

Running and Analyzing Debugger Results

 

 

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