{
// 指向 PHP 可执行文件。
"php.validate.executablePath": "D:/phpstudy/PHPTutorial/php/php-5.5.38/php.exe",
// Git 可执行文件路径
"git.path": "D:/git/Git/cmd/git.exe",
"git.autofetch": true,
"explorer.confirmDelete": false,
"python.pythonPath": "D:/python/python.exe",
"window.zoomLevel": 0
}
在phpstudy中可以环境——开启xdebug功能
在php.ini中配制如下
[XDebug]
xdebug.profiler_output_dir="D:phpstudyPHPTutorial mpxdebug"
xdebug.trace_output_dir="D:phpstudyPHPTutorial mpxdebug"
zend_extension="D:phpstudyPHPTutorialphpphp-5.4.45extphp_xdebug.dll"
下面这两行一定要加上
xdebug.remote_enable = On
xdebug.remote_autostart = On
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port = 9000
xdebug.auto_trace = On
注意下面这行,将捕获程序的异常并打印到浏览器
xdebug.show_exception_trace = On
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On
xdebug.trace_output_dir="D:phpstudyPHPTutorial mpxdebug"
xdebug.show_local_vars = On
xdebug.profiler_enable = On
xdebug.profiler_enable_trigger = On