Install Phpstrom, ask degree Niang, as to crack device these online many, directly into the topic.
We need to get a php_xdebug DLL file in Phpstorm breakpoint debugging, this file has already been installed in the PHP installation file just now. No downloads.
Note: Currently we use PHP 5.5.13 version, the Php_xdebug file also needs to be corresponding support 5.5.13 version, this if your PHP version is a high version, please go to xdebug official website to download the corresponding plugin.
http://xdebug.org/download.php
3. Although this piece, has been configured OK, it is inevitable that our PHP version is different, how to install the configuration php_xdebug in PHP?
First: Get the DLL file for Php_xdebug
Second: Save the obtained php_xdebug DLL file to the Ext file directory of the corresponding PHP installation package.
Third: Open your php.ini file and copy the following code:
|
That corresponds to your PHP path. |
|
[Xdebug]
zend_extension= "C:/php/ext/php_xdebug-2.2.7-5.5-vc11-nts-x86_64.dll"
Xdebug.remote_enable=1
Xdebug.remote_handler=dbgp
Xdebug.remote_mode=req
Xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey= "Phpstorm"
Check whether the installation was successful:
Enter your PHP installation directory, in the Php.exe directory, into the command line operation, enter the instructions php.exe-m
The installation success interface is as follows:
Showing this means the installation is successful.
The configuration tutorials are as follows:,
Phpstrom Tutorials
Configure PHP Web Application
Open your local project, click on the small inverted triangle icon, appear,
Click Edit configurations to appear as shown in the interface
Click on the Green "+" in the upper left corner and click on select PHP Web application,
If it appears, the name is preferably in English, and is associated with the project.
This time we want to add the sever port, add the new sever side, click the icon next to sever,
Click the Green Plus icon that appears in the upper-left corner
Name: for English
Host:localhost.
PORT: You test the port of the website, such as 801
Then click Apply, then click OK
This is generally the homepage of your website, after setting up, you can debug your own program online.
We only need to debug a php file separately when it is configured as follows:
In the Phpstorm home page interface, ALT+SHIFT+F9 is simple to debug and then appears
When the error occurs, click Fix and re-add the environment to compile the test.
PHP Debugger Phpstrom installation, configuration tutorial