Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jdev 10.1.2 & tomcat 4.1.31 remote debugging how to sharing knowledge

modulo2Jun 26 2005 — edited Jul 3 2005
Dears,
I have seen some forum issue about enabling remote debugging in jdev, and tomcat and I really needed this, so I'm posting what I have done to make this work.

Working environmnet:
---------------------
Win xp SP1 latest updates till day of posting.
Jdeveloper 10.1.2
Tomcat 4.1.31 ( version 5.x.x won't work as it needs jdk 1.5 at least, and jdev is configured to run with 1.4 )

1- Configuring tomcat:
-----------------------
a- backup $TOMCAT$\bin\catalina.bat.
b- edit $TOMCAT$\bin\catalina.bat to include the following:
set JAVA_OPTS=%JAVA_OPTS% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

at least before the begining of calling any
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS%

In the case of mine, I put it after:
:doneSetArgs
c- start tomcat, now u have configured any process to attach to this server will use port 8000 -u can pick any port u want-

2- Configuring jdeveloper:
----------------------------
a- right click project -> project proerties.
b- Profiles -> development -> debugger -> remote.
c- check "Remote debugging".
d- select radio "Attach to JPDA", u will find two buttons disabled ( this is correct, they will be enabled after the first use of the remote debugging and saving the connection information )
e- click "ok"
f- compile and deploy the application to the application server instance.
g- right click any jsp u will start with debugging, u will find an option "Start remote debugger".
h- it will ask u about the "host", and "port", specify yr them, and u may save parameters in order not to enter them again.

When it will encounter a breakpoint it will tell u, and happy debugging :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 31 2005
Added on Jun 26 2005
1 comment
1,221 views