Xdebug with CodeIgniter and NetBeans

家住魔仙堡 提交于 2019-12-13 18:21:19

问题


I've installed Xdebug on Ubuntu serve rand I've set /etc/php/5.6/apache2/conf.d/20-xdegug.ini file this way

zend_extension=xdebug.so

xdebug.remote_host = 192.168.0.140
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.remote_handler = dbgp
xdebug.remote_mode = req

remote_host is an Ubuntu 16.04 virtual machine on the same local network that my computer.

When I try to start the debugging NetBeans has a message on bottom waiting for connection (netbeans-debug) and the execution doesn't stop on the breakpoint.

I'm using CodeIgniter and the URL is launched with ?XDEBUG_SESSION_START=netbeans-xdebug parameter added to the URL.

I'm not sure about which php.ini I have to modify:

/etc/php/5.6/cli/php.ini

or

/etc/php/5.6/apache2/php.ini

来源:https://stackoverflow.com/questions/51288753/xdebug-with-codeigniter-and-netbeans

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!