Phpstorm+xdebug for commissioning, Phpstormxdebug
The author's development environment is as follows: Windows8.1+apache+phpstorm+xdebug+firefox (XDebug helper 1.4.3 plugin).
First, Xdebug installation configuration
(1) Download XdebugDownload address: http://www.xdebug.org/must download a version that matches the PHP installed on the machine. The specific download method is as follows: Copy the source code of the Phpinfo Web page to http://www.xdebug.org/find-binary.php and follow the instructions to install it. As shown in the following:
(2) Installation XdebugFollow the download "Php_xdebug-2.3.2-5.4-vc9.dll" and copy it to the d:\php\ext\ directory.
(3) configuration XdebugOpen D:\php\php.ini and add the following code at the end:
[Xdebug]
Zend_extension=D:\php\ext\php_xdebug-2.3.2-5.4-vc9. xdebug. Remote_enable =1
xdebug.= "DBGP"
xdebugremote_host = "localhost"
xdebug.= "req"
xdebug remote_port = 9000
Restart Apache.
(4) Verify the installation is successful detection Method 1:In the Phpinfo Web page, the ability to retrieve the Xdebug word has been successfully installed, as shown in:
detection Method 2:
Enter php-m under CMD and you can see that the Xdebug configuration is successful. As shown in the following:
Second, phpstorm in the Xdebug configurationIn setting of "File", "Settings", "Languages & Frameworks", "PHP":
(1) Configure PHP ServerLocate "Servers" with the following configuration: Name:localhosthost:localhostport:80debugger:xdebug as shown:
(2) Configure PHP DebugFind "Debug", Xdebug in the debug port fill 9000, other default. As shown in the following:
Third, the configuration of Xdebog helper plugin in Fireforx (1) Installing the Xdebug helper pluginAs shown in the following:
(2) Configuring the Xdebug helper pluginIn the, click "Options" and configure as follows: IDE Key:phpstormdomain Filter:localhost as shown:
Four, the use of Xdebug debugging methods and Procedures (1) Open Debug Monitor in PhpstormClick on the phone-like icon to turn on debug listening, as shown in:
(2) Open Xdebug Helper plugin in Chrome browser method One:In the Address bar, click the bug, select Debug, as shown in:
Method Two:Use the shortcut key: Ctrl+shift+x to configure.
(3) setting breakpoints in PhpstormYou can set a breakpoint by clicking the line number at the left margin.
(4) Breakpoint DebuggingThe method that is then booted to the corresponding breakpoint in the browser is automatically broken, as shown in:
In the red box, there are all the breakpoint handling methods and shortcut key hints.
http://www.bkjia.com/PHPjc/1133412.html www.bkjia.com true http://www.bkjia.com/PHPjc/1133412.html techarticle phpstorm+xdebug to debug, phpstormxdebug the author's development environment is as follows: Windows8.1+apache+phpstorm+xdebug+firefox (XDebug Helper 1.4.3 plugin). One, Xdebug installation configuration (1) ...