Zend Studio使用Xdebug调试

一、项目名称更换后,要清除下面的内容,才能使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);
相关文章
相关标签/搜索