XDEBUG - 於 windows 安裝

log 分析器可以用 wincachegrind
http://sourceforge.net/projects/wincachegrind/
步驟 編輯   
1.生出 phpinfo 頁面
2.用瀏覽器開啟 http://video.nchu.edu.tw/
複製 phpinfo 頁面的資訊到輸入框中
3.按下 [Analyse my phoinfo() output] 按鈕
4.會跑一陣子,跑完會看到如下的安裝步驟

1. Download php_xdebug-2.2.5-5.3-vc9.dll
2. Move the downloaded file to C:\FMS\php\ext
3. Edit C:\FMS\php\php.ini and add the line
    zend_extension = C:\FMS\php\ext\php_xdebug-2.2.5-5.3-vc9.dll
4. Restart the webserver

照著做完就安裝好了

設定部分請在修改 php.ini 時加上如下的內容
   
[XDEBUG]
#xdebug.auto_trace=1
#xdebug.collect_params=1
#xdebug.collect_return=1

#xdebug.profiler_enable_trigger=1
xdebug.profiler_enable=1
xdebug.trace_output_dir="C:/FMS/xdebug"
xdebug.profiler_output_dir="C:/FMS/xdebug"

記得建立 trace_output_dir 與 profiler_output_dir 的目錄

trace 是追蹤用的,有需要才開,只是偵測效能可以不用開啟
profiler_enable_trigger 要開啟的話,要把  profiler_enable 設為 0

留言

這個網誌中的熱門文章

c語言-關於#define用法

CMD常用網管指令

PHP 與 JavaScript 之間傳值利用 json