リモート デバッグを使用しているときに xdebug がブレークポイントで停止しないという問題があります (コマンド ライン経由でスクリプトを実行する場合はすべて問題ありません)。プログラムの最初の行で中断し、ブレークポイントをキャッチせずに終了します。
MacPorts for Apache と PHP の使用に切り替えるまでは、以前は問題なく動作していました。何度か(いくつかのバージョンで)再コンパイルを試みましたが、サイコロはありません。
PHP 5.3.1 と Xdebug 2.1.0-beta3 を使用しています
また、少なくとも 3 つの異なるデバッグ プログラム (MacGDBp、Netbeans、および JetBrains Web IDE) を試しました。
私の php.ini 設定は次のようになります。
[xdebug]
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000
xdebug.remote_host=localhost
xdebug.idekey=webide
デバッガーの出力をログに記録すると、ブレークポイントの設定は次のようになります/;
<- breakpoint_set -i 895 -t line -f file:///Users/WM_imac/Sites/wm/debug_test.php -n 13 -s enabled
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="895" state="enabled" id="890660002"></response>
実行すると、デバッガーはアプリケーションの最初の行のコンテキストを取得し、detach および stop メッセージを送信します。
ただし、デバッガ起動時にこの行が出力されます。
<- feature_get -i 885 -n breakpoint_types
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="885" feature_name="breakpoint_types" supported="1"><![CDATA[line conditional call return exception]]></response>
「ライン条件呼び出しリターン例外」は何か意味がありますか?