mac环境下使用vscode调试php无法执行

刚开始学习php,操作环境:mac OS 10.15.7 PHP 7 mac系统自带Apache和PHP
然后安装了vscode,想通过vscode进行调试,但是按F5开始调试后,下一步按钮是灰的,无法继续执行,不知道原因在哪里,还请指明下,谢谢。

img


launch.json是自动生成的,没有修改。

img

launch.json配置

{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    // 调试分两种模式:
    // 1、编辑器内运行调试:先执行 Listen for Xdebug 然后执行 Launch currently open script
    // 2、浏览器访问模式:先执行 Launch Built-in web server, 然后浏览器 http://localhost:8088/testphp.php
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for Xdebug",
            "type": "php",
            "request": "launch",
            "port": 9000
        },
        {
            "name": "Launch currently open script",
            "type": "php",
            "request": "launch",
            "program": "${file}",
            "cwd": "${fileDirname}",
            "port": 0,
            "runtimeArgs": [
                "-dxdebug.start_with_request=yes"
            ],
            "env": {
                "XDEBUG_MODE": "debug,develop",
                "XDEBUG_CONFIG": "client_port=${port}"
            }
        },
        {
            "name": "Launch Built-in web server",
            "type": "php",
            "request": "launch",
            "runtimeArgs": [
                "-dxdebug.mode=debug",
                "-dxdebug.start_with_request=yes",
                "-S",
                "localhost:8088"
            ],
            "program": "",
            "cwd": "${workspaceRoot}",
            "port": 9001,
            "serverReadyAction": {
                "pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
                "uriFormat": "http://localhost:%s",
                "action": "openExternally"
            }
        }
    ]
}
```css


```