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):
``json
{
"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.
I too am having this issue. On clicking the play button, the "debug toolbar" (whatever its called) pops up for ~1 second then disappears.
Have additionally tested with the testproject, launch.json as:
{
"version": "0.2.0",
"configurations": [
{
//"debugServer": 4711, // Uncomment for debugging the adapter
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003,
"log": true
},
{
//"debugServer": 4711, // Uncomment for debugging the adapter
"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}"
}
},
{
//"debugServer": 4711, // Uncomment for debugging the adapter
"name": "Launch Built-in web server",
"type": "php",
"request": "launch",
"runtimeArgs": [
"-dxdebug.mode=debug",
"-dxdebug.start_with_request=yes",
"-dxdebug.client_port=${port}",
"-S",
"localhost:0"
],
"program": "",
"cwd": "${workspaceRoot}",
"port": 0,
"serverReadyAction": {
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
"uriFormat": "http://localhost:%s",
"action": "openExternally"
}
}
]
}
PHP version
PHP 8.0.3 (cli) (built: Mar 2 2021 23:34:05) ( ZTS Visual C++ 2019 x64 )
Copyright (c) The PHP Group
Zend Engine v4.0.3, Copyright (c) Zend Technologies
with Xdebug v3.0.4, Copyright (c) 2002-2021, by Derick Rethans
VS Code version
Version: 1.58.2 (user setup)
Commit: c3f126316369cd610563c75b1b1725e0679adfb3
Date: 2021-07-14T22:10:15.214Z
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19043
VC Code extension version
v1.16.2
Have set xdebug.log=C:\tmp\xdebug_errors.log but not getting any entries so unfortunately cannot provide a log file. Will continue to keep trying i/r/t getting some logs.
The "age old" dev dependency problem. I need to figure out how to run a GitHub actions test for this.
Thanks for reporting, should be out in a few minutes.
Thanks for reporting, should be out in a few minutes.
Just noting that this resolves the issue, many thanks!
Thank you for your quick fix guys, I kinda freaked out today when I started coding and realised the debugger didn't wanna :D
Most helpful comment
The "age old" dev dependency problem. I need to figure out how to run a GitHub actions test for this.