1. Install XAMPP and ZendStudioZendStudio: pan. baidu. coms1o6BjvAEXAMPP: pan. baidu. coms1ntkNcEX. 2. Configure Xdebug in the installation directory of XAMPP, find the php folder, and edit the phpphp. ini file. Find [XDebug] and edit the content
1. Install XAMPP and Zend Studio: http://pan.baidu.com/s/1o6BjvAE XAMPP: The http://pan.baidu.com/s/1ntkNcEX can be installed normally. 2. Configure Xdebug in the installation directory of XAMPP, find the php folder, and edit the php/php. ini file. Find [XDebug] and edit the content
1. Install XAMPP and Zend Studio
Zend Studio: http://pan.baidu.com/s/1o6BjvAE
Http://pan.baidu.com/s/1ntkNcEX: XAMPP
Normal installation.
2. Configure Xdebug
In the installation directory of XAMPP, find the php folder and edit the php/php. ini file. Find [XDebug] and edit the content as follows:
[XDebug]zend_extension = "D:\xampp\php\ext\php_xdebug.dll"xdebug.remote_enable = 1xdebug.remote_handler = "dbgp"xdebug.remote_host = "127.0.0.1"xdebug.remote_port = 9000
Restart apache at this time (restart in the XAMPP console ). Enter http: // localhost/in the browser to go to The xampp welcome page. Click the phpinfo link in the left and right menus,If the word "Xdebug" is found, the configuration is successful.. As follows:
This program makes use of the Zend Scripting LanguageEngine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
With Xdebug v2.1.1,Copyright (c) 2002-2011, by Derick Rethans
3. Create a project in Zend Studio
- 3.1 create a project
- Open the "File-> New-> Local PHP Project" menu of Zend Studio to create a PHP Project. The path of the project can be freely stored,For example, I put it in the D: \ Zend \ workspaces \ defaworkworkspace10 directory (which will be configured in apache later ).). Note: Select Basic for Content instead of ZendFramework (Zend Framework is a web Framework in the php world and we don't need it now ).
- Next, configure the Lanch Settings. Because we are a B/S program, select "LauchURL". If you are a C/S client script, select "Launch CLI Application ". Note:Enter/at Base Path /. AfterBy default, omitted.
3.2 configure apache for XAMPP
Configure to point to the D: \ Zend \ workspaces \ defaworkworkspace10 directory
- Edit D: \ java \ xampp \ apache \ conf \ httpd. conf replaces the 'D:/java/xampp/htdocs' with 'D: \ Zend \ workspaces \ defaworkworkspace10"
These two punishments are:
- DocumentRoot "D: \ Zend \ workspaces \ DefaultWorkspace10"
- # DocumentRoot "D:/java/xampp/htdocs"
-
- #
- Verify and restart apache.
3.3 configure Zend Studio to use XDebug
You need to configure Zend Studio to use Xdebug for debugging, instead of the default Zend Debugger. perform global configuration in the Window --> Preferences-> PHP Debug menu.
Select Xdebug for a Web in PHP Debugger.