1. PHP Study 开启 xdebug 扩展
2. 设置应用端口和服务地址
3. 设置监听端口号
端口号要和php.ini中xdebug的端口号一致
4. 确认 php.ini 中xdebug端口
[Xdebug]
zend_extension=D:/phpstudy_pro/Extensions/php/php5.6.9nts/ext/php_xdebug.dll
xdebug.collect_params=1
xdebug.collect_return=1
xdebug.auto_trace=On
xdebug.trace_output_dir=D:/phpstudy_pro/Extensions/php_log/php5.6.9nts.xdebug.trace
xdebug.profiler_enable=On
xdebug.profiler_output_dir ="D:\phpstudy_pro\Extensions\tmp\xdebug"
xdebug.remote_enable=On
xdebug.remote_host=localhost
xdebug.remote_port=9100
xdebug.remote_handler=dbgp
5. 如果还是不起作用 phpinfo() 一下信息,确认配置信息和显示信息是否一致。