Zend Studio配置Xdebug

按照网上的教程一直没有配置好,上官网看到一句话, If you don't know which one you need, please refer to the custom installation instructions.

如果你不知道选择哪一个版本,参考相关说明

Tailored Installation Instructions

This page helps you finding which file to download, and how to configure PHP to get Xdebug running. Please paste the full output of phpinfo() (either a copy & paste of the HTML version, the HTML source or php -i output) and submit the form to receive tailored download and installation instructions. Do not paste the raw HTML (from view-source) into the form.

就是将本机 phpinfo()的源码拷贝到 Form框里,点提交,会自动分析你本地安装情况

我的是:

Summary

  • Xdebug installed: no
  • Server API: Apache 2.0 Handler
  • Windows: yes - Compiler: MS VC9 - Architecture: x86
  • Zend Server: no
  • PHP Version: 5.4.29
  • Zend API nr: 220100525
  • PHP API nr: 20100525
  • Debug Build: no
  • Thread Safe Build: yes
  • Configuration File Path: unknown
  • Configuration File: unknown
  • Extensions directory: C:\php

Instructions

  1. Download php_xdebug-2.2.5-5.4-vc9.dll
  2. Move the downloaded file to C:\php
  3. Create php.ini in the same folder as where php.exe is and add the line
    zend_extension = C:\php\php_xdebug-2.2.5-5.4-vc9.dll
  4. Restart the webserver

If you like Xdebug, and thinks it saves you time and money, please have a look at the donation page.

奇怪的是,我本机PHP是解压到D:\php 目录下的怎么会跑到C盘,最终百度,需要将php.ini下的 extension dir改成 ext实际上就是把 ;去掉即可

光这样还不行,还要把php.ini复制到C:\Windows下面才可以  phpinfo()就看到Xdebug了

转载于:https://www.cnblogs.com/niuge/p/3791879.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值