douao8353 2013-01-04 07:01
浏览 83
已采纳

在PHP中安装XDebug时遇到问题

I try to config XDebug on PHP. I download the XDebug DLL from http://xdebug.org/. I tried every possible version, and edit the php.ini as it suggested, but when I use phpinfo() to see the xdebug info I get nothing at all. Any ideas?

My environment is PHP 5.4 + Apache2.2 + Windows 7.

  • 写回答

1条回答 默认 最新

  • duanduji2986 2013-01-04 07:20
    关注

    First, follow these instructions on the xDebug site to install the module correctly (Which I think you've done!.. Use the wizard!! ). (http://xdebug.org/wizard.php)

    When you run phpinfo(), you should see the following (If installed correctly):

    This program makes use of the Zend Scripting Language Engine: 
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with Xdebug v2.2.0, Copyright (c) 2002-2012, by Derick Rethans <-- !! :D !!
    

    Then, you will need to add the following to your php.ini.

    [xdebug]
    # Make sure the below path is correct and points to your 'xdebug.so'
    zend_extension="/Applications/MAMP/bin/php/php5.2.17/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
    xdebug.default_enable=1
    xdebug.max_nesting_level=100
    xdebug.remote_autostart=on 
    xdebug.remote_enable=on
    xdebug.remote_handler=dbgp
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9000
    xdebug.remote_mode=req
    xdebug.idekey="netbeans-xdebug" # I use netbeans IDE, so I configure this
    

    Remember: After making any changes to php.ini you must restart your apache server.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

悬赏问题

  • ¥20 macmin m 4连接iPad
  • ¥15 DBIF_REPO_SQL_ERROR
  • ¥15 根据历年月数据,用Stata预测未来六个月汇率
  • ¥15 DevEco studio开发工具 真机联调找不到手机设备
  • ¥15 请教前后端分离的问题
  • ¥100 冷钱包突然失效,急寻解决方案
  • ¥15 下载honeyd时报错 configure: error: you need to instal a more recent version of libdnet
  • ¥15 距离软磁铁一定距离的磁感应强度大小怎么求
  • ¥15 霍尔传感器hmc5883l的xyz轴输出和该点的磁感应强度大小的关系是什么
  • ¥15 vscode开发micropython,import模块出现异常
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部