◆xdebugのインストール
マックでライオンでbrew使ってxdebugどうやってインストールするのか検索したが、いい感じのページが見つからず。そんなときは打ち込んでみる。
> brew install xdebug==> Downloading http://xdebug.org/files/xdebug-2.1.2.tgz######################################################################## 100.0%==> phpize==> ./configure --disable-debug --prefix=/usr/local/Cellar/xdebug/2.1.2 --enable==> make==> CaveatsTo use this software:* Add the following line to php.ini:zend_extension="/usr/local/Cellar/xdebug/2.1.2/xdebug.so"* Restart your webserver.* Write a PHP page that calls "phpinfo();"* Load it in a browser and look for the info on the xdebug module.* If you see it, you have been successful!==> Summary/usr/local/Cellar/xdebug/2.1.2: 348K, built in 15 seconds
なんだ。
インストール一発でできたみたい。
◆次はphp.iniの修正。
インストールからのメッセージを読めば書いてある、親切設計。
が、その通りに書いただけではnetbeansからデバッグできなかった。
ちょっとググって、下記のURLから
http://wiki.netbeans.org/HowToConfigureXDebug
これをxdebugのセクションの下にコピー。
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
これでnetbeansでデバッグできるようになりました。
0 件のコメント:
コメントを投稿