vscode-php-debug: Debugging won't start in 1.16.2

Clicking on ‘play’ does nothing, the debugger stops within a second.

Workaround: go back to v1.16.1

PHP version: n/a Xdebug version: n/a VS Code version: 1.58.2 Linux VS Code extension version: 1.16.2

Your launch.json: Xdebug php.ini config:

Xdebug logfile (from setting xdebug.log in php.ini):

{
    "launch": {
        "configurations": [
            {
                "name": "Listen for XDebug",
                "type": "php",
                "request": "launch",
                "port": 9099,
                "pathMappings": {
                    "/sites": "/home/evs/sites"
                },
                "xdebugSettings": {
                    "max_children": 256,
                    "max_depth": 3
                }
            },
            {
                "name": "Listen for XDebug CLI",
                "type": "php",
                "request": "launch",
                "port": 9099,
                "pathMappings": {
                    "/site": "${workspaceFolder}"
                },
                "xdebugSettings": {
                    "max_children": 256,
                    "max_depth": 3
                }
            }
        ]
    }
}
VS Code extension logfile (from setting `"log": true` in launch.json):
Not available, debug won't start.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

The “age old” dev dependency problem. I need to figure out how to run a GitHub actions test for this.

Thank you for your quick fix guys, I kinda freaked out today when I started coding and realised the debugger didn’t wanna 😄