windows下的webman调试
我搜了好几个教程,他们搞得非常复杂,实际上就配置下php.ini和phpstorm里面的Xdebug的port就行了。
1.php.ini里面xdebug的配置:
[xdebug] zend_extension = xdebug xdebug.remote_enable =On xdebug.remote_host= 127.0.0.1 xdebug.remote_port = 9003 xdebug.default_enable=On xdebug.idekey="PHPSTORM" xdebug.remote_autostart=On xdebug.remote_handler = "dbgp" xdebug.mode=debug
2.phpstorm里面的配置:
实际执行的命令就是下面的: F:laragonbinphpphp-7.4.28-Win32-vc15-x64php.exe -c F:laragonbinphpphp-7.4.28-Win32-vc15-x64php.ini -dxdebug.mode=debug -dxdebug.client_port=9003 -dxdebug.client_host=127.0.0.1 F:WWWaskmewindows.php restart
第一个箭头所指是是否监听,第二个箭头是运行webman程序但是不debug,第三个是运行webman程序,并进行debug.