php之xdebug装配(windows)

WBOY
Release: 2016-06-13 11:45:20
Original
796 people have browsed it

php之xdebug安装(windows)
写在前面的话:
${PHP_PATH} : php编译文件所在的目录

1. 下载xdebug(选择和自己PHP版本兼容的xdebug)
http://www.xdebug.com/download.php
2. 将下载好的php_xdebug_xxx.dll 放置到 ${PHP_PATH}/ext/ 目录中
3. 在php.ini中配置xdebug(php.ini位于${PHP_PATH}目录中)
(1) 新增以下配置:
zend_extension="${PHP_PATH}/ext/php_xdebug.dll"
[Xdebug]
xdebug.auto_trace=on
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.trace_output_dir="${PHP_PATH}/xdebug"
xdebug.profiler_enable=on
xdebug.profiler_output_dir="${PHP_PATH}/xdebug"
(2) 如果配置过 ZendOptimizer, 需要先屏蔽 ZendOptimizer 有关的配置, 通常如下(注释即可)
  [Zend]
  zend_extension_manager.optimizer_ts="path\ZendOptimizer-3.3.0\lib\Optimizer-3.3.0"
  zend_extension_ts="path\ZendOptimizer-3.3.0\lib\ZendExtensionManager.dll"


4. 重启IIS/Apache
5. 写一个test.php,内容为 ,如果输出的内容中有看到xdebug,说明安装配置成功。如下

php之xdebug装配(windows)



注:如果没有配置成功也不要灰心,注意检查一下配置路径,通常都是因为Zend没有完全注释或者文件路径问题。O(∩_∩)O

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!