Starting a PHP Debugging Session

See Also

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:

  1. Locate the project's node in the Projects window.
  2. Either right-click the project node and select Debug, or select the project node and run the Debug Project command (Ctrl-F5 or Start icon).

Alternatively, you can debug an individual PHP file:

  1. Expand the project's node in the Projects window. Navigate the tree until you locate the file you want.
  2. Either right-click the file node and select Debug, or select the file node and run the Debug File command (Ctrl-Shift-F5).

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.

See Also
PHP Breakpoints in NetBeans IDE
Remote Debugging and Path Mapping
Stepping Through Your Program

Legal Notices