---
title: "如何用Eclipse在Resin中调试Web应用程序"
author: "dingtao"
date: "2008-07-31T00:59:42Z"
tags: []
slug: "eclipse-resin-web"
draft: false
lastmod: "2008-07-31T00:59:42Z"
id: 221950
url: "https://dingtao.iteye.com/blog/221950"
---

本文介绍如何在Resin中调试Web应用程序。测试环境为Windows XP / Resin 3.0.18 / Eclipse 3.1

在Resin的启动命令后加上如下参数：

**httpd -Xdebug -Xnoagent -Xrunjdwp:transport=dt\_socket,server=y,suspend=n,address=12345**

启动Resin后，打开Eclipse项目，选择 Run -&gt; Debug... -&gt; Remote Java Application -&gt; New

新建一个Remote Java Application，填入Host: **127.0.0.1**, Port: **12345**, 注意这个Port就是Resin启动的address参数。

现在，就可以利用Eclipse强大而方便的调试界面对Web App断点调试，跟踪了！