Когда запускаю консольные скрипты Yii2 выдает ошибку
Cannot evaluate code without a connection
php 7.2
xdebug 3.0
yii2
launch.js
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"cwd": "${workspaceFolder}",
"port": 9003
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${workspaceFolder}",
"port": 9003
}
]
}
php.ini
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.remote_enable=1
xdebug.client_host=localhost