EclipsePDT+XAMPP+Xdebug構成可能PHP開発プラットフォーム

1467 ワード

システム環境:
 XAMPP (Basispaket) version 1.7.4
EclipsePDT all in one
      Eclipse for PHP Developers
      Version: Helios Release(eclipse 3.6.0,PHP feature 1.3.0)       Build id: 20100617-1415
 
xdebugデバッグを使用するには
インストールされているPHPバージョンと組み合わせたxdebugをxdebug公式サイトからダウンロードする.DLLファイル、http://xdebug.org/find-binary.phpDebug公式サイトのこのページでは、ユーザーのphpバージョンに基づいて、ユーザーが対応するxdebugを動的に検索することができます.DLLファイル.ユーザーがphpinfo()を作成して自分のphpバージョン情報を表示し、ページのソースコードをテキストボックスにコピーし、「分析」ボタンをクリックすると、ユーザーが希望するdllファイルを見つけることができます.
このファイルをC:XAMPPPHPEXTフォルダにダウンロードして保持
PHP.INI初期化ファイルに次のコードを追加
;[xdebug]
zend_extension="C:\xampp\php\ext\php_xdebug-2.1.2-5.3-vc6.dll"

xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1  ; if debugging on remote server,
                              ; put client IP here
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0
xdebug.profiler_output_dir="C:\xampp\tmp"

apacheを再起動
phpinfoページをリフレッシュしてxdebug情報が含まれているかどうかを確認し、あればインストールに成功しました.
eclipsePDTのdebug configurationを設定し、xdebugを選択し、デバッグブラウザ、ファイルパスなどの関連情報を設定します.具体的にはhttp://robsnotebook.com/php_debugger_pdt_xdebug
 
デバッグ中にUnexpected termination of script,debugging endedの問題が発生するとxdebugの可能性が高い.dllのバージョンの問題が原因です.http://stackoverflow.com/questions/3512307/xampp-1-7-3-eclipse-pdt-xdebug-debugging-a-php-web-page-in-eclipse-never-sto