PHPstudy + phpstorm 配置xdebug
window10+phpstudy >>> php5.5.38 + Apache
php.ini配置
;性能分析文件的存放位置,默认值为/tmp
xdebug.profiler_output_dir="E:\phpStudy\tmp\xdebug"
;函数调用跟踪信息输出文件目录,默认值为/tmp
xdebug.trace_output_dir="E:\phpStudy\tmp\xdebug"
zend_extension="E:\phpStudy\php\php-5.5.38\ext\php_xdebug.dll"
#新增xdebug配置
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_mode = "req"
#端口设置需要与phpstrom中的设置一致
xdebug.remote_port = 9000
xdebug.idekey=PHPSTORM
phpstrom设置
php languagel level: 这个是PHP的版本
cli interpreler 选择PHP的文件所在位置,最后选择为php-cgi.exe 文件
选择php.exe位置
原有的配置文件不变,主要看Debug port 端口号,要与PHPinfo 里的xdebug port端口号一致
Ied key : 这里要查看phpinfo里的xdebug 的key是什么,要写的一致
host:你的访问域名或者 localhost
port:你项目的端口是多少就写多少
Name:随便命名
host:项目的访问路径
prot:项目的端口
debugger:选择xdebug