PHP XDebug (Windows) 設置

XDebug下載地址:http://xdebug.org/download.php 

將php_xdebug-x.x.x-xxx.dll重命名爲php_xdebug.dll

並將php_xdebug.dll移動到php的ext文件夾中

在PHP.ini最後一行加入如下設置

[XDebug]

zend_extension = "\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1 ;一定要設爲開啓狀態,不然會出現:waiting for XDebug session 停在:57%
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"

xdebug.trace_output_dir = "\xampp\tmp"

 啓動Apache,用phpinfo()函數查看是否啓用XDebug

如果看不到,那麼可能跟PHP的版本號有關


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章