vscode下载插件
php开启debug 这里用的是phpstudy
php.ini配置
[Xdebug]
xdebug.remote_autostart = On
zend_extension=C:/root/phpstudy_pro/Extensions/php/php5.5.9nts/ext/php_xdebug.dll
xdebug.collect_params=1
xdebug.collect_return=1
xdebug.auto_trace=On
xdebug.trace_output_dir=C:/root/phpstudy_pro/Extensions/php_log/php5.5.9nts.xdebug.trace
xdebug.profiler_enable=On
xdebug.profiler_output_dir=C:/root/phpstudy_pro/Extensions/php_log/php5.5.9nts.xdebug.profiler
xdebug.remote_enable=On
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
vscode配置好文件后就可以按f5使用了