我设法安装xdebug并在需要时通过本地php.ini文件启用。
它工作了一个月左右,但今天它没有。
如果我尝试使用Zend Studio IDE启动debugging会话,它将陷入“57%启动:等待xdebug会话”
如果我运行这个命令$ sudo netstat -tunlp | 服务器控制台上的grep 9000 ,我得到:
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1609 / php-fpm.conf)
phpinfo报告Xdebug v2.1.0
本地php.ini
的zend_extension = '/ usr / lib中/ PHP5 / 20090626 / xdebug.so'
[Xdebug的]
xdebug.remote_autostart =closures
xdebug.remote_enable =开
xdebug.remote_connect_back =开
xdebug.remote_port = 9000
xdebug.remote_handler = “dbgp”
xdebug.profiler_enable =关
xdebug.profiler_enable_trigger =开启
xdebug.profiler_output_name = cachegrind.out。%t。%p
xdebug.profiler_output_dir ='/ media / data / www / clients / client1 / web2 / tmp /'
xdebug.remote_log = '/媒体/数据/networking/客户/客户端1 / WEB2 /日志/ xdebug_didomenica.log'
眼镜
Ubuntu服务器12.04,今天升级
PHP版本5.3.10-1ubuntu3.4
Xdebug v2.1.0
任何帮助真的很感激!
非常感谢!
把它忘了吧。 有了这个configuration选项,它的作品! (刚把端口改成9001 )
zend_extension='/usr/lib/php5/20090626/xdebug.so' [xdebug] xdebug.remote_enable=On xdebug.remote_connect_back = On xdebug.remote_port=9001 xdebug.remote_handler='dbgp' xdebug.remote_log='/media/data/www/clients/client1/web2/log/xdebuga.log' xdebug.profiler_enable=Off xdebug.profiler_enable_trigger=Off xdebug.profiler_output_name=cachegrind.out.%t.%p xdebug.profiler_output_dir='/media/data/www/clients/client1/web2/tmp/'
出于某种原因,我不得不删除我的ZendStudio“workspaces”文件夹,并再次导入我的所有项目,当然,在windows->preferences->php->debug->configure更改了debugging器的por。