xdebug ver3 @ Docker
xdebug が止まらなくなった。
どうやらver2と3でconfigの書き方が変わったそうで。
2021/2/22現在でver3.0.3が最新
自分は
・なぜか上手くインストールできてない感じなので
Dockerfileに
pecl install xdebug-3.0.3
とverまで追記
->php -vとphpinfo()で入ってるか確認
・xdebug.iniに
xdebug.remote_log=/tmp/xdebug.log
記載
zend_extension=/usr/lib64/php/modules/xdebug.so
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
portのデフォルトは9003になった→vscodeのlaunch.jsonも9003に変更