Hi  Jason,

Things are going better!!!

First, I followed all of these directions. And now my tomcat process
starts fine, with that socket
number showing on a "netstat -a". However, jdee still wouldn't attach.

Then, I recalled that in tomcat.sh, I had modified my "JAVACMD" line
(the one that starts everything
up) to redirect stdout and stderr to a log file. So I removed this
redirect and the output now goes into the
shell from which I launched tomcat (maybe I can modify this later so
stdout and stderr goes into emacs), but, after doing that, jdebug hits
my breakpoints. It asks me where the source is every time it hits a
breakpoint, so I have to set up a classpath, but it does hit the
breakpoints.

I think I can manage this now. It seems great so far, and it's wonderful
to have such a great mailing list. I will join it next week.

Thanks again to everyone for all of your help! (of course, you might
hear from me later :_)).

Heather Buch

Jason Rumney wrote:
> 
> Heather Marie Buch <[EMAIL PROTECTED]> writes:
> 
> > I'm sorry, but could you please give me the syntax for setting it in
> > startup.sh?
> >
> > I tried just writing the line
> >
> > TOMCAT_OPTS=value
> 
> try adding the following line as well
> 
> export TOMCAT_OPTS
> 
> and make sure you are starting Tomcat with "startup.sh", not
> "tomcat.sh start".
> 
> > Also, even when I set the TOMCAT_OPTS in tomcat.sh and start tomcat, and
> > it echos that the opts
> > are set to the debugging stuff, when I run netstat -a it doesn't show my
> > tomcat socket number, so
> > is tomcat really running on that socket?
> 
> I don't know. I would expect the socket to show up in netstat -a.
> But the real test is if JDEbug can attach to the process.
> 
> > Is this what I would do?
> >
> > startup tomcat and apache with debugging opts
> > go into emacs, open the java file
> > start jdedebug
> > attach process
> > set breakpoint
> > open servlet in browser
> 
> Yes.
> 
> > then what?
> 
> Then wait for your breakpoint to be hit.
> 
> > Or would I open the servlet in the browser in between attaching and
> > setting the breakpoint?
> 
> That would work too, unless you are trying to debug the servlet's init
> method, since that only runs the first time you connect.
> 
> > So, it looks like now I just need a way to make sure tomcat is starting
> > on that socket, and the proper order to run the debugging.
> 
> Hopefully the above will help.
> 
> --
> Jason Rumney

-- 
http://www.mit.edu/~hmbuch/

Heather Marie Buch  [EMAIL PROTECTED]

Reply via email to