php擴展xdebug安裝

xdebug下載

https://xdebug.org 下載對應的文件便可php


windows下安裝

php5.2自帶xdebug,在ext下面,只須要開啓便可,找到php.ini,加入如下內容,其餘版本若是沒有xdebug,就在官網下載對應版本的dll便可,須要預先新建兩個輸入的文件夾,好比如下的F:/server-php/xdebug/trace和F:/server-php/xdebug/profilerlinux

extension=php_xdebug-2.1.2-5.2-vc6.dll
[Xdebug]
xdebug.profiler_enable=on
xdebug.trace_output_dir="F:/server-php/xdebug/trace"
xdebug.profiler_output_dir="F:/server-php/xdebug/profiler"

linux下安裝

使用phpize安裝,php.ini配置和windows一致windows


mac下安裝

使用brew來安裝便可debug

#先搜索對應版本的擴展
brew search php56-xdebug
#找到後
brew install php56-xdebug
相關文章
相關標籤/搜索