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=1
Xdebug2系でよく設定していた
xdebug.remote_port
remote_autostart
remote_enable
remote_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
で設定しています。
その他設定等たくさんありますが、以下で確認できます。