vscode PHP无法调试怎么办

vscode PHP无法调试怎么办

vscode php无法调试怎么办?vscode调试php的方法

xdebug调试vscode

下载xdebug.dll扩展库

php.ini配置

 [XDebug]  xdebug.remote_enable = 1  xdebug.remote_autostart = 1  zend_extension="D:phpstudy-2018PHPTutorialphpphp-5.5.38extphp_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教程

以上就是

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享