The IDE starts the debugger, then runs the application inside the debugger. When you start a debugging session, the IDE automatically opens the debugger windows, opens a browser window, and prints debugger output to the Output window. You start the debugging session in the browser window.
By default, the debugging session stops at the first line of the PHP code. You can disable stopping at the first line in Tools > Options (NetBeans Preferences on Mac) > PHP > Debugging. When the session stops, you have a number of options for stepping through/into or continuing the debugging session.
To start debugging a project:
).Alternatively, you can debug an individual PHP file:
The process for starting a debugging session is the same for local and remote projects. However path mapping must be set up to debug remote projects.