Working with PHP Debugging

The following table shows how to debug a PHP project.

Number one
Set Up XDebug
  1. Determine if you have XDebug set up and configured
  2. If you need XDebug, go to the XDebug web page and use their tools to determine what version of XDebug you should use.
  3. Download and install the correct version of XDebug according to their website.
  4. Configure the appropriate local php.ini file.
  5. Test XDebug in the command line.
  6. Configure the IDE to use XDebug.

For more information, see Setting Up XDebug.


Number two
Prepare to debug

Number three
Begin a debugging session


Number four
Monitor your code
  1. Step through your code.
  2. View debugging information

Number five
Finish the debugging session

Legal Notices