一、項目名稱更換後,要清除下面的內容,才能使xdebug正常使用
php
這裏清掉以後,ide會本身加進去。vim
二、要檢查remoter server上面的php.ini 配置是否正確,一個是ip,一個是端口ide
ip不正確會致使網站打開奇慢,端口不正確則不能進入本地的斷點網站
文件路徑:vim /etc/php.inithis
zend_extension= "/usr/lib64/php/modules/xdebug.so"debug
xdebug.remote_host=192.168.232.24調試
xdebug.remote_port=9005code
xdebug.remote_enable=trueserver
xdebug.remote_handler=dbgpip
xdebug.remote_autostart = true
xdebug.profiler_enable = Off
xdebug.profiler_enable_trigger = On
xdebug.profiler_output_dir = "/tmp/xdebug"
xdebug.profiler_output_name = cachegrind.out.%s
xdebug.show_exception_trace = Off
xdebug.show_local_vars = 1
xdebug.max_nesting_level = 50
xdebug.var_display_max_depth = 6
xdebug.dump_once = On
xdebug.dump_globals = On
xdebug.dump_undefined = On
;xdebug.dump.REQUEST = *
xdebug.dump.SERVER = REQUEST_METHOD, REQUEST_URI, HTTP_USER_AGENT
三、簡單的調試可使用打印語句:
echo '<pre>'; print_r($this->request);