到http://www.zend.com/en/products/studio/downloads,下载相关文件
Studio for Eclipse
ZendDebugger
Studio Browser Toolbars
1.安装zend studio for eclipse
在php安装目录的php.ini里加入
[Zend]
zend_extension_ts=D:/PHP/ext/ZendDebugger.dll
zend_debugger.allow_hosts=127.0.0.1/32
zend_debugger.allow_tunnel=127.0.0.1/32
zend_debugger.expose_remotely=always
ZendDebugger.dll要选择与php版本相匹配的
3、把debugger带的dummy.php复制到apache网站根目录 如:D:\Apache2.2\htdocs
4、重启apche服务。
5、启动zend studio for eclipse,并新建一个工程

工作目录选择apache 站点根目录 如:D:\Apache2.2\htdocs
5.给新建的空工程添加两个文件,一个提交给另一个处理,我们开始web page的调试
文件一:OrderForm.html 内容如下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:::Order Form:::</title>
</head>
<body>
<form id="OrderForm" name="OrderForm" method="post" action="ProcessOrder.php">
<table width="200" border="0">
<tr bgcolor="#999999">
<td>Item</td>
<td>Quantity</td>
</tr>
<tr>
<td>Tires</td>
<td><input name="tireqty" type="text" id="tireqty" size="3" maxlength="3" /></td>
</tr>
<tr>
<td>Oil</td>
<td><input name="oilqty" type="text" id="oilqty" size="3" maxlength="3" /></td>
</tr>
<tr>
<td>Spark Plugs </td>
<td><input name="sparkqty" type="text" id="sparkqty" size="3" maxlength="3" /></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="submit" /></td>
</tr>
</table>
</form>
</body>
</html>
文件二:ProcessOrder.php 内容如下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bob's Auto Parts Order Result</title>
</head>
<body>
<h1>Bob's Auto Parts</h1>
<h2>Order Result</h2>
<?php
/*title*/
echo '<p>Order Processed at ';
echo date('H:i, jS F');
echo '</p>';
/*fetch variable*/
$tireQty = $_POST['tireqty'];
$oilQty = $_POST['oilqty'];
$sparkQty = $_POST['sparkqty'];
/*calculate*/
$totalQty = 0;
$totalQty = $tireQty + $oilQty + $sparkQty;
$totalAmount = 0.00;
$subTotalAmount = 0.00;
define('TIREPRICE',100);
define('OILPRICE' ,10);
define('SPARKPRICE' , 4);
$subTotalAmount = $tireQty * TIREPRICE + $oilQty * OILPRICE + $sparkQty * SPARKPRICE;
$taxRate = 0.10;
$totalAmount = $subTotalAmount * (1 + $taxRate);
/*display Result*/
echo $tireQty.' Tires </br>';
echo $oilQty.' Oil</br>';
echo $sparkQty.' Spark Plugs </br>';
echo 'Sub TotalAmount: '.number_format($subTotalAmount ,2).'</br>';
echo 'totalAmount include tax :'.number_format($totalAmount,2).'</br>';
?>
</body>
</html>
6.接下来调试这两个页面

很重要的一步:window->preferences->General->web browser ,使用ie进行调试