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.

 

 

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.HERE

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

breakpoint.png

 

 

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_select.png

The PHP Conditional Breakpoint dialog opens.

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

conditional_breakpoint_properties1.png

  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.png

 

 

link_icon.png

Related Links:
Breakpoints

Breakpoints View

Debugging

Running and Analyzing Debugger Results