Eclipse++xdebug Developing PHP environment configuration How does Eclipse debug with debug in Eclipse how does eclipse stop Debu

Source: Internet
Author: User
First, the PHP environment configuration:

    1. This time the Appserv 2.5.10 integrated installation package is used. The specific version is as follows, after installation PHP version is 5.2.6 Vc6,apache version 2.2
    2. After the installation is complete, the PHP configuration file is in the C:\Windows directory, which is php.ini.
    3. The rest of the configuration is simple, if in doubt can refer to Appserv related documents, this article mainly records eclips related integrated development environment configuration.

Second, Zendstudio Eclipse +xdebug development php environment software download:

    1. JRE installation, you can ignore this step if you already have a ready-made Java environment.
    2. Zend Studio builds a PHP development environment based on the Eclipse integration environment.
    3. Xdebug version to match the PHP version, as to how to download the matching xdebug, need to be detected on the http://www.xdebug.org/download.php page, the page is Custom installation Instructions link, open after the text box appears, paste the output of the Phpinfo function to this, you can analyze the PHP needs of the Xdebug version. Because the official website has not provided the VC6 version of the Xdebug, so I had to search, finally found in Csdn VC6 version of the Xdebug. Download to get a DLL file.

Three, the installation configuration is as follows:

    1. Install Eclipse, which is to extract to a directory such as: D:\Program Files\eclipse, pure green installation.
    2. Installing Xdebug is to copy the downloaded DLL file to the Ext directory in the PHP installation directory, as in this example C:\AppServ\php5\ext.
    3. Modify the C:\windows\php.ini file to join the Xdebug configuration:

Extension=php_xdebugvc6.dll

[Xdebug]

Xdebug.profiler_enable=on

Xdebug.trace_output_dir= "d:/workspace/runrun/xdebugdata"

xdebug.profiler_output_dir="D:/workspace/runrun/xdebugdata"

Description: Php_xdebugvc6.dll is loaded into PHP as an extension and specifies its data output directory (above the Red Word section, customizable directory)

After completion, restart Apache, you can see the Xdebug support information in the Phpinfo output, indicating that the installation configuration is successful.

At this point, the Eclipse workspace directory is set to the Apache Web root directory, you can easily run the PHP program you wrote.

Iv. Some notes:

    1. The PHP VC6 version is compiled with the Visual Studio 6 compiler, and if you are using apache+php under Windows, select the VC6 version.
    2. The VC9 version is compiled with the Visual Studio 2008 compiler, and if you are using iis+php under Windows, select the VC9 version.
    3. refer to the Dongua log, but this article uses the Zendstudio already integrated environment, so the configuration is simpler.

The above describes the Eclipse++xdebug development of PHP environment configuration, including the eclipse,debug aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.