Transcript:

This tutorial will show you how to set up the debugger in PHPEdit.

  1. Open PHPEdit.
  2. Choose Debug > Debugger Settings.
  3. On the Local CGI Tab, you will see that the CGI Executable is the default that comes with PHPEdit.
    Change this to the php-cgi.exe file in your php directory.
    The local cgi is the parser PHPEdit will use to debug your script when you press the "Run" key in the IDE. By changing it to the php-cgi.exe that came with your version of php, it ensures that you will be debugging using the same php version that you use when viewing the scripts in a browser. However, using Local CGI debugging is only effective for pages that don't use POST, GET, SYSTEM, COOKIE, or SESSION variables, as it will never pass through Apache.
  4. Select the HTTP tab.
  5. Make sure "Use backslashes in filenames on remote filesystem" is checked.
  6. In the "HTTP Server root URL" field, type in "http://localhost/".
  7. The Local Root directory should be the root location of your web documents that you set up in Apache.
  8. The remote root directory should be the same as the local root directory.

When set up this way, PHPedit will communicate with dbgListener when you view your php scripts in a browser. This is the most effective way of debugging because it allows you to use POST, GET, SERVER, COOKIE and SESSION variables.