![]() Select the debugger just configured, click Add Breakpoint, turn on monitoring, click Debug, a web page will appear, and a debugging area will appear below the code The port here is also the same as above, pay attention to check to accept external connectionsĪdd a debug configuration for PHP Web pages (PHP Web page)Īdd configuration, write the name of the debug to be run, the server is localhost, the initial url is the corresponding local path or domain name you want to visit, check Allow to run, click the blue word verify in the picture, and the verification will appear as follows, Indicates that the build is successful The debugger Xdebugįile -> Settings -> Debug configuration IDE key is PHPSTORM, host is localhost port 9003, which corresponds to the same port as the xdebug configuration in php.ini above. Here, the host should be set to be the same as the domain name, and the port should be 80. Here You have to set the host file under windows, add the corresponding ip and domain name as bindingĪfter setting up phpstudy, start debugging the phpstorm environment, click File -> Settings -> Server in the upper left corner, and configure the information corresponding to phpstudy. org/download/historicalīecause I use a cms framework here, I use the domain name to bind with the ip here, add the domain name, the purpose of the website (here you need to open the corresponding first folder), port, click Add, save the configuration If not, you can go here to find the corresponding version download. There is a php_xdebug.dll file in \phpstudy\PHPTutorial\php\php-7.0.12-nts\ext folder 7.0.12, for debugging, php_xdebug.dll comes with 7.0 and above, so you don’t need to download it. If you are using a version below php7.0, you need to add php_xdebug.dll yourself. Open to \phpstudy\PHPTutorial\php\php-7.0.12-nts\ folder, then find php.ini, add the following configuration In the phpstudy settings of the other options menu, click the allow directory list (other options menu -> phpstudy settings -> allow directory list) to allow access to files under www The php version I use here is php-7.0.12-nts Apache and the mysql version must be greater than 5.0. Phpstudy 2018 debugging, first of all, I have prepared phpstudy2018 here, and the next step is to debug the phpstudy environment to match phpstorm. Environmental preparationĪn ordinary login page Environment construction and debugging configuration ![]() The development of this tool greatly facilitates the calling of programmers and security personnel, so learning how to use phpstorm debugging is a must Skill. Whether you are learning php development or code auditing, you cannot do without phpstorm debugging. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |