率直に言って、私も 2 日間非常に悪い日を過ごしましたが、最終的に何が修正されたのか今はわかりません。
; this is the thread safe version,
; the absence of _nts_ in the dll name 'shows' this
; do not use _ts, your library won't get registered and won't show in phpInfo()
zend_extension = "D:/wamp/bin/php/php5.3.8/zend_ext/php_xdebug-2.1.2-5.3-vc9-x86_64.dll"
php.ini を確認し、すべての値が (到着) した場合は phpinfo() を確認してください
xdebug.remote_enable = on
xdebug.remote_handler=dbgp
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
; if you have multiple virtual hosts ( like 'local.fooclient' )
; maybe using the IP is safer (for any same-machine-debugging)
xdebug.remote_host=127.0.0.1
; maybe a -much- lower port helped, 84 was free. use netstat to figure out.
xdebug.remote_port=84
; idekey! also see note below
xdebug.idekey=netbeans-xdebug
その他の落とし穴:
Web 上で xdebug.remote_handle (r なし) のタイプミスを数回見ました。注意してください。
idekey に関する注意: 上記の idekey は phpinfo() でマスター値として表示されましたが、MYMACHINENAME$ のような「ローカル値」で上書きされました。==> DBGP_IDEKEY という名前のグローバル環境変数を (コンピューターのプロパティで) 設定し、(また) netbeans-xdebug を再起動 (または単にログアウト) すると役立ちます! 再度: phpInfo() で再確認してください。有効になりました。
もちろん、netbeans-menu:options->php タブ->debugging セクションをこのポートとセッション ID に調整します。
通信しようとしているポートが開いているかどうかを (php を使用して) チェックするスクリプトを次に示します。(さらに下のコメントも、画像から入力するのが面倒な人のために)
ブラウザーが接続できるように、(フラストレーションの中で) 常にデバッグ開始の get-argument をアタッチすることを忘れないでください。
http://localhost/myTest.php?XDEBUG_SESSION_START=netbeans-xdebug
ポートフロンティアでは、このツールも役立つかもしれません。
VC6 と VC9 でコンパイルされたすべてのバージョンを別々に保持していることを 4 重にチェックします。
コマンド ラインから実行するwhatever/path/php.exe myTest.php
と (上記の設定が完了したら)、追加のエラーが表示される場合もあります (間違った dll をいじっていたときに表示されました)。
http://www.wampserver.comをお勧めします
(個人的な理由から、人気のある xampp パッケージよりも適しています...)