phpstorm多端口调试
在存在多个项目的时候,一般使用localhost加不同的端口,进行访问,这样子,一台主机(域名)可以有多个网站。这个就不多说了。
简单说说配置php的xdebug,可以到Xdebug这个网站,将你的phpinfo页面源码复制进去,他会自动帮你分析,告诉你如何为php配置xdebug。
然后,在php.ini中,还有一些其他的配置,以下是我的配置,仅供参考
zend_extension = D:\php\php\php-7.1.10-nts\ext\php_xdebug-2.5.4-7.1-vc14-nts-x86_64.dll
xdebug.profiler_output_dir="D:\php\tmp\xdebug"
xdebug.trace_output_dir="D:\php\tmp\xdebug"
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.remote_enable = true
xdebug.remote_host