How can I use xdebug with wp-cli

Since wp-cli version 2.8.0 the --use-include flag makes XDebug work with wp eval-file as it will use include() for the file instead of using eval().

See more here:

https://make.wordpress.org/cli/2023/05/31/wp-cli-v2-8-0-release-notes/

https://github.com/wp-cli/eval-command/issues/49

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)