tomcat远程调试

原创 2015年11月20日 08:32:46
@echo off
rem Licensed to the Apache Software Foundation (ASF) under one or more
rem contributor license agreements.  See the NOTICE file distributed with
rem this work for additional information regarding copyright ownership.
rem The ASF licenses this file to You under the Apache License, Version 2.0
rem (the "License"); you may not use this file except in compliance with
rem the License.  You may obtain a copy of the License at
rem
rem     http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.

if "%OS%" == "Windows_NT" setlocal
rem ---------------------------------------------------------------------------
rem Start script for the CATALINA Server
rem ---------------------------------------------------------------------------

rem Guess CATALINA_HOME if not defined
set "CURRENT_DIR=%cd%"
if not "%CATALINA_HOME%" == "" goto gotHome
set "CATALINA_HOME=%CURRENT_DIR%"
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
cd ..
set "CATALINA_HOME=%cd%"
cd "%CURRENT_DIR%"
:gotHome
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
echo The CATALINA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:okHome

set "EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat"

rem Check that target executable exists
if exist "%EXECUTABLE%" goto okExec
echo Cannot find "%EXECUTABLE%"
echo This file is needed to run this program
goto end
:okExec

rem Get remaining unshifted command line arguments and save them in the
set CMD_LINE_ARGS=
:setArgs
if ""%1""=="""" goto doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setArgs
:doneSetArgs

set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=<span style="color:#ff0000;">9000</span>
set JPDA_SUSPEND=n

call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%

:end

将该文件保存至tomcat的bin下即可


eclipse的Debug里面,有个remote,输入IP与端口,端口是上面写的JPDA_ADDRESS值


哪里看到忘记了,先备用,JAVA内容分享比较少,后面多写一些

相关文章推荐

Eclipse 远程调试Tomcat的应用

  • 2012年06月04日 15:59
  • 226KB
  • 下载

tomcat开启远程调试功能

在日常开发中,有时需要对远程服务器上的应用进行远程调试,对于tomcat,要进行远程调试其实很简单,只需要在启动tomcat时开启jpda服务即可。 什么是JPDA呢? JPDA(Java Pla...

Tomcat配置远程调试的支持

  • 2013年10月29日 10:50
  • 14KB
  • 下载

MyEclipse MyEclipse远程调试tomcat

  • 2011年07月21日 13:09
  • 243KB
  • 下载

启动tomcat远程调试,懒程序员必备哦!

看到这个题目,有人或许会有疑问,为什么要启动 远程调试?我在本地调试不也挺好的吗? 静下心来,想一想,就是你的开发工具和服务器不在你本机上,又想看到程序的输出信息怎么办? 好吧,言归正传,咱们需要...

Tomcat下配置远程调试

  • 2016年01月04日 16:44
  • 101KB
  • 下载

修改Tomcat支持远程调试

  • 2013年03月15日 15:18
  • 7KB
  • 下载

IDEA利用JPDA远程调试运行在tomcat中的程序

原文:How to remotely debug application running on tomcat within Intelli Idea 本文摘取了原文多种配置中得一种并检验成功:   ...

tomcat 远程调试 脚本文件 bat

  • 2012年03月30日 10:42
  • 212B
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:tomcat远程调试
举报原因:
原因补充:

(最多只允许输入30个字)