---
title: "安装版tomcat debug启动"
author: "ddtenvelope"
date: "2010-08-19T16:43:57Z"
tags: []
categories: ["编程语言"]
slug: "tomcat-debug"
draft: false
lastmod: "2010-08-19T16:43:57Z"
id: 741316
url: "https://ddtenvelope.iteye.com/blog/741316"
---

以前的tomcat是以bat文件启动的，今天安了个tomcat，里面是采用exe文件启动的，不知道怎么配远程debug，搜得一下结果可行：

 

在Tomcat的JavaOpts中加入以下两行：

-Djava.compiler=NONE  
\-Xrunjdwp:transport=dt\_socket,server=y,suspend=n,address=8888

 

这里8888是远程debug的端口