首页 > 代码库 > Zend Studio配置Xdebug

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了