V
V
Vladislav2020-07-09 15:38:13
PHP
Vladislav, 2020-07-09 15:38:13

How to make this harvester work (vscode + openserver + xdebug + yii2 )?

This launch.json config:

{
  "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
    }
  ]
}

Such 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 checked here, xdebug is installed.

How do I debug YII2?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
monday_suicide, 2020-07-09
@dcc

yii2 has debug out of the box

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question