Netbeans xdebug nightmare

柔情痞子 提交于 2019-12-06 05:47:58

问题


I know what you're thinking, ANOTHER netbeans xdebug post?

Well, I've tried everything I've seen in other posts, and nothing seems to work. Here's my setup:

  • OS: Ubuntu 9.10
  • PHP: 5.2.1
  • Netbeans: 6.8

The following is in my /etc/php5/apache2/php.ini

zend_extension=/usr/lib/php5/20060613/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey="netbeans-xdebug"

I've tried switching ports (I've tried 9001, 9002, and 9034 so far), using zend_extension_ts, adding additional xdebug parameters in the config file, but nothing seems to work: Netbeans still says it's waiting for connection (netbeans-xdebug)

If I look at my phpinfo, I do see a whole section on xdebug, and the parameters are correct.

Any help would be greatly appreciated!


回答1:


I have no idea what happened, but I switched my debug port to 9000 and upgraded to Netbeans 6.9, and it works now.




回答2:


adding those lines solved my problems (usually)

xdebug.remote_enable = on

xdebug.profiler_enable = on

xdebug.profiler_enable_trigger = on

xdebug.profiler_output_name = cachegrind.out.%t.%p

xdebug.profiler_output_dir = "c:/wamp/tmp"



回答3:


xdebug seems not working in "run as script" mode try it on your local website



来源:https://stackoverflow.com/questions/2989748/netbeans-xdebug-nightmare

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