php -v
或 php-cgi -v
查看[Xdebug] zend_extension="示例:E:\php\ext\php_xdebug.dll" xdebug.remote_enable=1 xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.idekey = PHPSTORM
Define SRVROOT "示例:E:/Apache24" LoadModule php7_module "示例:E:/php/php7apache2_4.dll" PHPIniDir "示例:E:/php" AddHandler application/x-httpd-php .php AddType application/x-httpd-php .php ServerName 127.0.0.1:80 DirectoryIndex index.php index.html DocumentRoot "示例:E:/html"
httpd -k install htppd -k start
<?php phpinfo(); ?>
"php.validate.executablePath": "示例:E:\\php\\php-cgi.exe"
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": 9000 } //,{ // "name": "Launch currently open script", // "type": "php", // "request": "launch", // "program": "${file}", // "cwd": "${fileDirname}", // "port": 9000 //} ] }