- xdebug调试vscode
- 下载xdebug.dll扩展库
- php.ini配置
-
1 [XDebug] 2 xdebug.remote_enable = 1 3 xdebug.remote_autostart = 1 4 zend_extension="D:\phpstudy-2018\PHPTutorial\php\php-5.5.38\ext\php_xdebug.dll"
-
- vscode 安装插件 php debug,php xdebug
-
1 add configuration: 2 { 3 "name": "Listen for XDebug", 4 "type": "php", 5 "request": "launch", 6 "port": 9000 7 }, 8 { 9 "name": "Launch currently open script", 10 "type": "php", 11 "request": "launch", 12 "program": "${file}", 13 "cwd": "${fileDirname}", 14 "port": 9000 15 }
-
- 调试时有两个选项:选择"Listen for XDebug"标示自己打开浏览器,输入网址-进入断点。
选择"Launch currently open script"标示调试当前文件。
原文地址:https://www.cnblogs.com/baikaishui-liang/p/11165545.html
时间: 2024-11-02 10:05:13