To proceed, we would like to check the required debugging settings for NetBeans. Select the Tools | Options | PHP | Debugging tab:
In this window, uncheck the Stop at First Line checkbox, because we want to stop at our desired line and check the Watches and Balloon Evaluation checkbox. This option enables you to watch custom expressions or variables while debugging.
Now, let's have a look into a debugging session running in the NetBeans window:
In this screenshot, the debug toolbar and button are indicated by functional ...