Can't using Visual Code to debug in Laravel project

后端 未结 4 1971
你的背包
你的背包 2021-01-05 03:46

I was config success to debug in PHP on VSCode.

My problem is when I run the project it always errors at the function:

protected function getJsonPayl         


        
4条回答
  •  醉话见心
    2021-01-05 04:23

    On Laravel 5.7, it works for me:

    {
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for XDebug",
            "type": "php",
            "request": "launch",
            "port": 9000,
            "ignore": [
                "**/vendor/**/*.php"
            ]
        },
        {
            "name": "Launch currently open script",
            "type": "php",
            "request": "launch",
            "program": "${file}",
            "cwd": "${fileDirname}",
            "port": 9000,
            "runtimeExecutable": "/usr/bin/php"
        }
    ]
    }
    

提交回复
热议问题