---
title: "起源科技qeephp的apmxe集成环境中xdebug的安装"
author: "decentway"
date: "2012-02-20T10:37:00Z"
tags: ["apmxe", "xdebug"]
categories: ["编程语言"]
slug: "qeephp-apmxe-xdebug"
draft: false
lastmod: "2012-02-20T10:37:00Z"
id: 1412430
url: "https://decentway.iteye.com/blog/1412430"
---

经过一个上午的折腾，发现xdebug和xcache冲突。（具体xdebug参见网上教程）

修改php.ini和php.template

把debug配置放到xcache下面就可以了。

比如：

```
 [xcache]
zend_extension_ts = %APMXE%\php5\ext\php_xcache.dll

[xcache.admin]
xcache.admin.enable_auth = On
xcache.admin.user = "root"
; xcache.admin.pass = md5($您的密码)
xcache.admin.pass = "30e894a25962c63f926a1a4cfa2cb8d5"

[xcache]
xcache.shm_scheme =        "mmap"
xcache.size  =               64M
xcache.count =                 1
xcache.slots =                8K
xcache.ttl   =                 0
xcache.gc_interval =           0
xcache.var_size  =           32M
xcache.var_count =             1
xcache.var_slots =            8K
xcache.var_ttl   =             0
xcache.var_maxttl   =          0
xcache.var_gc_interval =     300

xcache.cacher =               On
xcache.stat   =               On
xcache.optimizer =           Off

[xdebug]
 zend_extension_ts= %APMXE%\php5\ext\php_xdebug-2.0.4-5.2.8.dll
 xdebug.auto_trace=1
 xdebug.collect_params=1
 xdebug.collect_return=1
 xdebug.trace_output_dir="%APMXE%\htdocs\xdebug\trace"
 xdebug.profiler_enable=1
 xdebug.profiler_output_dir="%APMXE%\htdocs\xdebug\profiler" 
 xdebug.remote_enable=1
```