Eclipse remote debug introduction
来源:互联网 发布:开淘宝入门 编辑:程序博客网 时间:2024/05/16 07:43
First we need to load/run the application in remote debug mode:
-------------------------------------------------------------------------------------------------------------------
For a normal Java application loading & running(set a command line script for loading):
------------------
SET CP=D:/work/ReverseTest/TestClass/bin
java -cp %CP% -agentlib:jdwp=transport=dt_socket,address=localhost:8888,server=y,suspend=y TestClass
------------------
Or config like following:
------------------
SET CP=D:/work/ReverseTest/TestClass/bin
java -cp %CP% -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=localhost:8888 TestClass
------------------
For a tomcat or Jboss, weblogic server, please set the following options in its loading shell script.
JBOSS:
Change run.bat/run.sh under JBOSS_HOME/bin(add the red line as following):
JBOSS_HOME: /var/jboss4
JAVA: /usr/java/j2sdk1.4.2_06/bin/java
JAVA_OPTS: -server -Xms128m -Xmx128m -Dprogram.name=run.sh
DEBUG_OPTS = -Xdebug -Xrunjdwp:transport= dt_socket,address=localhost:8888,server=y,suspend=n
CLASSPATH: /var/jboss4/bin/run.jar:/usr/java/j2sdk1.4.2_06/lib/tools.jar
TOMCAT:
Change catalina.bat/catalina.sh under TOMCAT_HOME/bin.(add the red line as following)
DEBUG_OPTS = -Xdebug -Xrunjdwp:transport= dt_socket,address=localhost:8888,server=y,suspend=n
Second we need to config our Eclipse tool to do the remote debug operation:
-------------------------------------------------------------------------------------------------------------------
1. Create a project by using the existed source code:
2. Click on the project(right mouse), select "Debug As"->"Debug Configurations…".
3. On the "Debug Configurations" page, click right mouse on the "Remote Java Application"->"New".
4. Fill the configuration page like the following, then click "Apply", set "breakpoints" and then start debug process by clicking "Debug".
5. On the running page, you can see the following screen.
- Eclipse remote debug introduction
- eclipse remote debug
- eclipse remote debug tomcat
- eclipse remote debug tomcat8
- Tomcat and eclipse remote debug
- Remote debug Tomcat from Eclipse
- Remote Java Application Debug & Eclipse
- Eclipse remote debug for maven
- eclipse 远程调试 remote debug
- eclipse remote debug with tomcat 的配置
- Eclipse Remote Debug, specially for Applet
- 用Eclipse远程调试(Remote debug)Tomcat
- 转: eclipse remote debug with tomcat 的配置
- 在Eclipse中使用Remote Debug对Tomcat进行调试
- Open debug mode for Tomcat and use Eclipse to remote debug the application
- remote debug with Tomcat
- Remote debug二三事
- vs remote debug
- 经典100签名
- 搞笑
- 什么是通货膨胀?还有什么是经济危机?
- AT指令3
- AT指令2
- Eclipse remote debug introduction
- AT指令1
- J2ME
- DES算法流水实现
- 什么叫做泛解析
- 二级域名原理
- 从语义网的角度看聊天机器人的产生
- 二叉查找树
- ViEmu/VS: vi-vim editing for Microsoft Visual Studio