1.debug ant target
|
<target name="debugTask">
<java
classname="com.emobile.test.util.Test" fork="true">
<jvmarg
value="-Xrunjdwp:transport=dt_socket,address=8099,server=y,suspend=y" />
<classpath>
<pathelement
location="${build.classes.dir}" />
<path
refid="compile.classpath" />
</classpath>
</java>
</target>
|
3.debug JBOSS
找到JBOSS_HOME/bin目录下的run.conf文件,找到:
#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"
将其修改为:
JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
4.debug Weblogic
Setting up Debug Configuration for Weblogic Server.
Here will be given instructions on how to setup Weblogic with remote debugging enabled. Accomplish the following steps to enable application debugging:
-
Locate startWebLogic.cmd ("...\domains\nechodomain\bin\startWebLogic.cmd") and add the following variable DEBUG_OPTS:
-
Next, insert the new variable to the WebLogic startup command, after "%JAVA_HOME%\bin\java" and preferably before the other options. Your startup script should look like:
This should enable remote debugging functionality for Weblogic. To check that remote debugging port is open, after starting Weblogic server from the command line run: "netstat /a" and make sure that the debugging port (1044) presents in the list of the opened ports.
本文提供针对不同应用服务器(如Tomcat、JBoss、WebLogic)的远程调试配置指南。包括环境变量设置、启动命令修改及Eclipse配置等步骤,帮助开发者轻松实现远程调试。

2366

被折叠的 条评论
为什么被折叠?



