私のコンピューターには2つのワードプレスがインストールされています。1 つのインストールはサーバー タイプであり、ポート 80 で stream_socket_client 関数を使用して別のインストールを呼び出します。クライアント側にブレークポイントを設定し、Eclipse でデバッグ セッションを作成すると、コードのこの部分が実行されますが、ブレークポイントで xdebug デバッガーを停止できません。curlで同じリクエストを呼び出すと、同じ問題はありません。
Mac OS を使用していますが、Linux でも同じ問題があります。
私のxdebug構成は次のとおりです。
zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
xdebug.remote_enable = on
xdebug.remote_handler="dbgp"
xdebug.remote_mode="req"
xdebug.remote_port=9000
xdebug.remote_host="127.0.0.1"
xdebug.remote_log=/var/log/xdebug_remote_log
xdebug.remote_autostart=1
xdebug.profiler_enable_trigger=on
xdebug.profiler_output_dir=/tmp
xdebug.profiler_output_name=cachegrind.out.%s.%t
xdebug.collect_return=on
xdebug.collect_vars=on
xdebug.auto_trace=0