Такой конфиг launch.json:
{
"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": 9000
}
]
}
Такой php.ini
; ----------------------------
; Zend extensions
; ----------------------------
;zend_extension = ioncube
;zend_extension = opcache
zend_extension = "%sprogdir%/modules/php/%phpdriver%/ext/php_xdebug.dll"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9001
xdebug.remote_mode=req
xdebug.idekey="VSCODE"
127.0.0.1/openserver/phpinfo.php здесь проверил, xdebug установлен.
Как мне дебажить YII2 ?