On 2002-09-27 "Mohan,Gautam"  wrote:
> Hi ,
>
> ���������� normally if any java program has to be debugged we use options
java -Xdebug -Xnoagent
> -Xrunjdwp:transport=dt_socket,address=5555,server=y,suspend=y HelloWorld
>
> and then if using JBuilder we can attach to the program at port 5555 and
start debugging or with
> jdb we use jdb -attach hostname:port .
>
> But for servlet debugging how to go about doing the same.

Hi.

I've never done this, so im not 100% sure, but this should work according
to docs.

Modify catalina.sh-script so that CATALINA_OPTS-parameters value is  the
options you use normally (-Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=5555,server=y,suspend=y), except add
"-Djava.compiler=NONE" to it.

Debugging servlets is propably a little different then normal java apps.
Docs say that

   1.      Set one or more breakpoints in your servlet code.
   2.      From the Run menu, select Debug "servletname.java".
   3.      Start the servlet running (for example, start your web browser
     and open a connection to the servlet).
   4.      Debug as normal.

If your using Oracle's JDeveloper you should propably use JDevelopers
servler.jar instead of tomcats. Don't know about JBuilder.

-------------------------
Toni Kielo
Ineo Oy
-------------------------


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to