---
title: "Tomcat以debug模式启动"
author: "samwalt"
date: "2015-09-15T14:25:43Z"
tags: []
categories: ["开源软件"]
slug: "tomcat-debug"
draft: false
lastmod: "2015-09-15T14:25:43Z"
id: 2243577
url: "https://samwalt.iteye.com/blog/2243577"
---

在catalina.sh文件中加入一行

```shell
CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
```