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
