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
|
|
|
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.
|
Adding a Condition to a Breakpoint
|
|
|
To add a condition to a breakpoint:
The PHP Conditional Breakpoint dialog opens.
|
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.
|