简要说下xDebug在webStrom里面的配置, 我是使用的宝塔+hosts篡改调试url.cn在本地调试url.cn的项目
- 我用的是宝塔, 在宝塔PHP配置里面安装插件xdebug
- 配置php.ini里面的xdebug配置项加入:
[XDebug]
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir ="D:\BtSoft\temp\xdebug"
xdebug.trace_output_dir ="D:\BtSoft\temp\xdebug"
xdebug.profiler_output_name = "cache.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "url.cn"xdebug.remote_port = 9010
xdebug.idekey = PHPSTORMzend_extension=php_xdebug.dll
zend_extension = ext\php_xdebug-2.9.6-7.1-vc14-nts-x86_64.dll -
上面的多的三条配置对应自己的机器上 域名url.cn xdebug调试端口 和 开发工具关键字
-
配置phpstorm: 参考这里 https: