vscode的配置 和xdebug配制

{
// 指向 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:\phpstudy\PHPTutorial\tmp\xdebug"
xdebug.trace_output_dir="D:\phpstudy\PHPTutorial\tmp\xdebug"
zend_extension="D:\phpstudy\PHPTutorial\php\php-5.4.45\ext\php_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:\phpstudy\PHPTutorial\tmp\xdebug"
xdebug.show_local_vars = On 
xdebug.profiler_enable = On 
xdebug.profiler_enable_trigger = On

posted @ 2018-08-23 14:37  blues-lee  阅读(638)  评论(0编辑  收藏  举报