Installing and Enabling the XDebug Debugger

Installing and Enabling the XDebug Debugger

  1. Download XDebug 2.0. The download links are listed under Releases. Download the Windows module appropriate for your version of PHP.
  2. Because Zend optimizer blocks XDebug, you need to disable Zend optimizer. In active php.ini file, shown by phpinfo() under Loaded Configuration File, locate the following lines and delete them or mark as comments:
    [Zend]
    ;zend_extension_ts = "C:/Program Files/php/zendOptimizer/lib/ZendExtensionManager.dll"
    ;zend_extension_manager.optimizer_ts = "C:/Program Files/xampplite/php/zendOptimizer/lib/Optimizer"
    ;zend_optimizer.enable_loader = 0
    ;zend_optimizer.optimization_level=15
    ;zend_optimizer.license_path =
    
  3. To attach XDebug to the PHP engine, uncomment the following lines in the php.ini files (directly beneath the [Zend] section, add them if not there):
    [XDebug]
    ;; Only Zend OR (!) XDebug
    zend_extension_ts = "<path to the php folder>/php_xdebug-2.0.3-5.2.5.dll"
    xdebug.remote_enable=true
    ;xdebug.remote_host=127.0.0.1
    ;xdebug.remote_port=9010
    ;xdebug.remote_handler=dbgp
    ;xdebug.profiler_enable=1
    ;xdebug.profiler_output_dir="G:/tmp"
    Note: Make sure the paths you specify match the location of the corresponding files as determined during your installation.
  4. Restart the Apache server.

Click here for more information on how to configure XDebug.

 

From:

http://www.netbeans.org/kb/docs/php/configure-php-environment-windows.html

http://www.netbeans.org/kb/docs/php/debugging.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值