Re: Debugging Tomcat 4.1.7 Servlet and JSPs

Nathan Fiedler <[email protected]>
Newsgroups gmane.comp.java.jswat.user
Message-ID <1026762243.1626.5.camel@chip>
When attaching to a remote debuggee it is not possible to change the
classpath, so in this case you will only be able to change the
sourcepath. That's not a problem, I'm just clarifying. Since the source
is rooted at D:\Twincity\src you will want to put that as the
sourcepath.

As for debugging JSPs, there's a howto written by Kay Streubel that you
might want to read:
http://www.bluemarsh.com/java/jswat/docs/howto-tomcat-jsp.html

Hope this helps.

nathan


On Mon, 2002-07-15 at 09:16, Lenny Sorey wrote:
> NATHAN,
> 
> First of all, thank you for developing such a robust java debugger. I can get the JWSAT 2.6 debugger to run using your tutorial'java example.
> Unfortunately , this is where my expertise drops off.
> 
> I am trying to debug a Tomcat 4.1.7 servlet with all the imports classes (see below)
> 
> Platform:
> Windows 2000 Professional
> J2SDK 141
> Tomcat 4.1.7
> MySql 4.0.1
> 
> My source files are as follows:
> 
> Directory: 
> 
> D:\Twincity
> D:\Twincity\jsp
> D:\Twincity\props\com\tcb\tcbfp
> D:\Twincity\src\com\tcb\tcbfp
> D:\Twincity\src\com\tcb\demo
> D:\Twincity\src\com\tcb\services
> D:\Twincity\src\com\tcb\tcbfp\exceptions
> 
> I am currntly using ant 1.4.1 to deploy my project to Tomcat's webapp subdirectory. 
> 
> I am using ANT to jar all my class files.
> 
> My question is how can I debug my servlets as well as my jsp files with Jswat 2.6?
> 
> I can start Tomcat 4.1.7 with catalina jpda start with no problem and attach remotely via jdbconn shared name.
> 
> I'm not sure where to set sourcename and classpath's for my project with Jswat 2.6.
> 
> Any help would be appreciated.
> 
> Thanks,
> 
> Lenny Sorey
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.