环境win7+phpstorm2018.3+phpstudy2016+php5.6.27-nts+apache
1. phpstudy开启xdebug扩展
2.修改php.ini:
结尾添加:
[XDebug] xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug" xdebug.trace_output_dir="D:\phpStudy\tmp\xdebug" zend_extension="D:\phpStudy\php\php-5.6.27-nts\ext\php_xdebug.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_name = "cache.out.%t-%s" xdebug.remote_enable = 1 xdebug.remote_handler = "dbgp" xdebug.remote_mode = "req" xdebug.remote_host = "127.0.0.1" xdebug.remote_port = 9010 xdebug.idekey= PHPSTORM
phpstorm配置与phpstudy同步:
//如果只在phpstudy里面打开项目或者开发就填phpstudy路径就ok