Home > Backend Development > PHP Tutorial > Eclipse++Xdebug development php environment configuration How to use debug in eclipse How to use debug in eclipse How to stop debu in eclipse

Eclipse++Xdebug development php environment configuration How to use debug in eclipse How to use debug in eclipse How to stop debu in eclipse

WBOY
Release: 2016-07-29 08:54:52
Original
1077 people have browsed it

1. PHP environment configuration:

  1. This time I used the appserv 2.5.10 integrated installation package. The specific versions are as follows. After installation, the php version is 5.2.6 vc6, and the apache version is 2.2
  2. After the installation is completed, the php configuration file is in the c:windows directory, that is, php.ini.
  3. The rest of the configuration is simple. If you have any questions, you can refer to the appserv related documents. This article mainly records the eclips-related integrated development environment configuration.

2. zendstudio Eclipse +xdebug development PHP environment software download:

  1. JRE installation. If you already have a ready-made java environment, you can ignore this step.
  2. zend studio is a PHP development environment built on the Eclipse integrated environment.
  3. The version of xdebug must match the php version. As for how to download the matching xdebug, you need to check it on the http://www.xdebug.org/download.php page. The page has a custom installation instructions link, and the text will appear after opening it. box, paste the output of the phpinfo function here, and you can analyze the xdebug version that your php needs. Since the official website no longer provides the vc6 version of xdebug, I had to search and finally found the vc6 version of xdebug on csdn. Download a dll file.
3. The installation configuration is as follows:

    To install Eclipse, just unzip it to a directory such as: D:Program FilesEclipse, a pure green installation.
  1. To install xdebug, copy the downloaded dll file to the ext directory under the PHP installation directory, such as C:AppServphp5ext in this example.
  2. Modify the c:windowsphp.ini file to add the xdebug configuration:
extension=php_xdebugvc6.dll

                                                                     xdebug.trace_output_dir="

D:/workspace/runrun/xdebugdata

"

" )

After completion, restart apache. You can see the xdebug support information in the phpinfo output, indicating that the installation and configuration are successful.

At this point, set the workspace directory of eclipse to the apache web root directory, and you can easily run the php program you wrote.

4. Some notes:

php The VC6 version is compiled using the Visual Studio 6 compiler. If you are using Apache+PHP under windows, please choose the VC6 version.

The VC9 version is compiled using the Visual Studio 2008 compiler. If you are using IIS+PHP under windows, please choose the VC9 version.

Referenced

dongua’s log, but this article uses the environment that zendstudio has integrated, so the configuration is simpler.

    The above introduces the Eclipse++Xdebug development PHP environment configuration, including eclipse and debug content. I hope it will be helpful to friends who are interested in PHP tutorials.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template