
vscode php无法调试怎么办?vscode调试php的方法
xdebug调试vscode
下载xdebug.dll扩展库
php.ini配置
[XDebug] xdebug.remote_enable = 1 xdebug.remote_autostart = 1 zend_extension="D:\phpstudy-2018\PHPTutorial\php\php-5.5.38\ext\php_xdebug.dll"
立即学习“PHP免费学习笔记(深入)”;
vscode 安装插件 php debug,php xdebug
add configuration:
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
立即学习“PHP免费学习笔记(深入)”;
调试时有两个选项:选择"Listen for XDebug"标示自己打开浏览器,输入网址-进入断点。
选择"Launch currently open script"标示调试当前文件。
推荐学习:vscode教程
以上就是vscode PHP无法调试怎么办的详细内容,更多请关注php中文网其它相关文章!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号