---
title: "linux tomcat 到本地ecplise 远程debug"
author: "dmwdmc"
date: "2015-08-24T17:44:36Z"
tags: []
categories: ["Web前端"]
slug: "linux-tomcat-ecplise-debug"
draft: false
lastmod: "2015-08-24T17:44:36Z"
id: 2237656
url: "https://dmwdmc.iteye.com/blog/2237656"
---

1.在catalina.sh 中修改

 if \[ -z "$JPDA\_ADDRESS" ]; then

    JPDA\_ADDRESS="16.187.191.105:8011"

  fi

 

2.启动时候

 ./catalina.sh jpda start  
或者

 ./catalina.sh jpda run

 

3.eclipse 中attach debug 过去。