not president's blog

脳直で書きます。自分が覚えたい事を書いているだけです。

Apatanaデバッグ方法(終わり)

デバッグできたので、覚書として記述していたものを書き直しました。

1.Aptanaを起動して、
ウィンドウ→設定→PHPデバッグにて以下を設定

  • デバッガ:Xdebug
  • サーバー:Default PHP Web Server
  • php実行ファイル
    f:id:orenodrupal:20151219204227p:plain

2.実行→実行構成→PHPWebページを右クリックから新規を選択
f:id:orenodrupal:20151219204243p:plain

3.以下を設定

  • 名前 適当
  • サーバー・デバッガー Xdebug
  • phpサーバー +か■を押下して以下を設定
  • 名前 適当
  • ベースURL http://localhost
  • 文書ルート デバックプロジェクトのルートフォルダ
  • ファイル デバックプロジェクトフォルダのIndex

4.php.iniファイルを設定
 XDebugの設定

[XDebug]
zend_extension = "c:\xampp\php\ext\php_xdebug.dll"
;extension=php_xdebug-2.2.2-5.3-vc9-nts.dll
xdebug.remote_enable = on
xdebug.remote_mode = req
xdebug.remote_host = localhost
xdebug.remote_port = 9000
xdebug.remote_handler = dbgp

これで虫ボタンからデバッグが行えるはず。
どうもこれまではphp.iniの設定で、remote_modeの設定が抜けていたようです。