---
title: "zend studio调试php"
author: "jwfdp"
date: "2013-04-28T22:33:11Z"
tags: []
categories: ["研发管理"]
slug: "zend-studio-php"
draft: false
lastmod: "2013-04-28T22:33:11Z"
id: 1856831
url: "https://jwfdp.iteye.com/blog/1856831"
---

在php.ini中配置如下：

 

;\[Xdebug]  
zend\_extension="D:/Program/PHP/ext/php\_xdebug.dll"  
xdebug.auto\_trace =On  
xdebug.show\_exception\_trace =On  
xdebug.remote\_autostart =On  
xdebug.remote\_enable =On

xdebug.profiler\_enable=on  
xdebug.trace\_output\_dir="F:/xdebug"       ;xdebug 的数据文件目录  
xdebug.profiler\_output\_dir="F:/xdebug"    ;xdebug 的数据文件目录  
xdebug.max\_nesting\_level = 10000          ;如果设得太小,函数中有递归调用自身次数太多时会报超过最大嵌套数错  
xdebug.remote\_enable=true                 ;Xdebug允许远程IDE连接  
xdebug.remote\_host=127.0.0.1              ;允许连接的zend studio的IP地址  
xdebug.remote\_port=9000                   ;反向连接zend studio使用的端口  
xdebug.remote\_handler=dbgp