zend_extension="path/to/xdebug/xdebug.so"
html_errors=on
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1Xdebug2系でよく設定していた
xdebug.remote_portremote_autostartremote_enableremote_hostなどが廃止になっています。
Xdebug3系でこの設定を利用していると警告メッセージが出るようになります。
zend_extension="path/to/xdebug/xdebug.so"
html_errors=on
xdebug.mode=debug
xdebug.client_host=localhost
xdebug.start_with_request=yes
xdebug.client_port=9003同じような設定を3系で利用する場合は上記の設定で良さそうです。
デバッグ接続を開始するときに接続を試みる際のIPアドレス、またはhost名を指定します。
デフォルト値はlocalhostです。
Xdebugがデバッグ接続を試みる際のport番号です。
デフォルト値は9003となっており、変更する必要はないと思われます。
xdebug.mode=debugとすると、ステップ実行や変数の確認等が行えるようになります。
デフォルト値はdefaultです。
基本的に常に有効化しておきたいため、いつもyesで設定しています。
その他設定等たくさんありますが、以下で確認できます。