netBeans + XDebug + WAMP

教學影片
http://www.youtube.com/watch?v=HbJOP0YcSjs

1.開啟 phpinfo()

2.將所有文字複製到此頁面中 Analysis 最佳版本 or 已經安裝
http://xdebug.org/wizard.php

3.通常設定
php.ini

#xdebug plugin 路徑
zend_extension = "C:/wamp/bin/php/php5.4.3/ext/php_xdebug-2.2.3-5.4-vc9-x86_64.dll"

[xdebug]
xdebug.remote_enable=on
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"

4.進 netbeans->tools->options->General->Web Browser
指定要開啟的瀏覽器 or 用 default system browser

5.進入 tools->options->PHP->Debugging 將 Watches and Balloon evalution 勾選

6.操作方式(跟 Eclipse 有點不一樣)
Debug project: Ctrl + F5
Continue: F5 (直接跳下個 breakpoint)
Step into: F7 (一行一行跑,也會進入 function)
-------------------------------------------
Run to Cursor:F4 (直接跳到鍵盤目前停留的那一行)
Step over: F8 (直接繞過 function 秀結果)
Step out: Ctrl + F7(已在 function 中,要跳出繼續執行)

7.網頁呈現後,要重新測試則在 Browser F5 重整,期間調整存檔的部分
會自動生效。

========================================================
*. Watches and Balloon evalution 中的
Max Depth of structures、Max Number of Children 數值有何影響,再研究。
netBeans + XDebug + WAMP netBeans + XDebug + WAMP Reviewed by Wild on 8/17/2013 08:29:00 下午 Rating: 5

沒有留言:

沒有Google帳號也可發表意見唷!

技術提供:Blogger.