MAC版 xampp 設定xdebug支援,xamppxdebug
MAC系統下,下載XAMPP 1.8.3-4 發現預設不支援xdebug,搜尋了下檔案,有xdebug 但再phpinfo()中沒有顯示相關的項。
修改php.ini 設定檔 ,在安裝目錄的/Applications/XAMPP/xamppfiles/etc/php.ini
zend_extension="/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_name=xdebug.cachegrind-out.%s.%p
xdebug.remote_log="/Applications/XAMPP/xamppfiles/logs/xdebug.log"
xdebug.idekey="PHPSTORM"
重啟apache發現,xdebug已經裝上了。
xdebug
| xdebug support |
enabled |
| Version |
2.2.3 |
| IDE Key |
PHPSTORM |
| Supported protocols |
Revision |
| DBGp - Common DeBuGger Protocol |
$Revision: 1.145 $ |
| Directive |
Local Value |
Master Value |
| xdebug.auto_trace |
Off |
Off |
| xdebug.cli_color |
0 |
0 |
| xdebug.collect_assignments |
Off |
Off |
| xdebug.collect_includes |
On |
On |