Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 43942 invoked from network); 29 Apr 2003 15:29:39 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 29 Apr 2003 15:29:38 -0000 Received: (qmail 25318 invoked by uid 97); 29 Apr 2003 15:31:39 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 25311 invoked from network); 29 Apr 2003 15:31:39 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 29 Apr 2003 15:31:39 -0000 Received: (qmail 40959 invoked by uid 500); 29 Apr 2003 14:02:33 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 40918 invoked from network); 29 Apr 2003 14:02:31 -0000 Received: from anchor-post-31.mail.demon.net (194.217.242.89) by daedalus.apache.org with SMTP; 29 Apr 2003 14:02:31 -0000 Received: from demon-gw.gliant.com ([193.195.220.193] helo=ANDYLAPTOP) by anchor-post-31.mail.demon.net with esmtp (Exim 3.35 #1) id 19AVgk-000GrO-0V for tomcat-user@jakarta.apache.org; Tue, 29 Apr 2003 15:02:31 +0100 From: "Andy Eastham" To: "Tomcat Users List" Subject: RE: How to debug servlets under tomcat? Date: Tue, 29 Apr 2003 15:02:29 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: <4135D07B3996D1118F3100805F8B0B0E0418AA35@apollo.tecnomen.ie> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Logging has it's place in most commercial code - you can't use the "step through code" method for problems that only happen under load for example. However I agree with the general principle that some bugs are very easy to find in an IDE. My personal favourite is Sun One Studio available free from java.sun.com. You can debug servlets directly, as within many other IDEs. However, it's worth pointing out that you don't need to run in a servlet environment to debug most bits of code. Often it's easy to call the code that's failing from a simple test class in the IDE. Andy > -----Original Message----- > From: Donie Kelly [mailto:donie.kelly@tecnomen.ie] > Sent: 29 April 2003 14:00 > To: 'Tomcat Users List' > Subject: RE: How to debug servlets under tomcat? > > > Get eclipse and debug the servlets interactively. Using log4j involves > putting log statements in your code and is not ideal. Eclipse > will run under > Windows as well as linux and solaris if you need it to. Debugging with log > statements went out in the 80's! If you like wasting time then > it's fine but > if you're getting paid to debug and create decent code, get a decent IDE. > > Just my opinion. Don't flame me. > Donie > > > -----Original Message----- > From: Mark W. Webb [mailto:mark@dolphtech.com] > Sent: 29 April 2003 14:00 > To: Tomcat Users List > Subject: Re: How to debug servlets under tomcat? > > please enlighten us as to what must be done to make things work then :) > > Donie Kelly wrote: > > >You wish :) > > > >-----Original Message----- > >From: Mark W. Webb [mailto:mark@dolphtech.com] > >Sent: 29 April 2003 13:46 > >To: Tomcat Users List > >Subject: Re: How to debug servlets under tomcat? > > > >so all I need to do is place a file called log4j.properties in > >WEB-INF/classes and tomcat is smart enough to see it and know what to do > >with it? Wow! I did not know that . Cool. > > > >Tim Funk wrote: > > > > > > > >>I don't use a debugger. I use log4j. (Actually commons-logging) > >> > >>http://jakarta.apache.org/log4j/docs/manual.html > >> > >>Each webapp can be configured with its own log4j settings by dropping > >>a file called log4j.properties into WEB-INF/classes > >> > >>Short term - its a PITA, long term it makes things much easier to fix. > >> > >>-Tim > >> > >>torechia wrote: > >> > >> > >> > >>>I am new to Tomcat and java servlets. I am running latest tomcat > >>>standalone on windows/xp and am having some problems doing > >>>transformations from xml to html in my java servlet. How can I > >>>debug this? I would like to step over each line of code and see what > >>>is happening. I have a copy of Visual J++, but am not sure how to > >>>compile and debug my servlets in this environment since I am not > >>>running IIS. Currently I am using ant to build and deploy my > >>>servlet. What is the best tool to debug servlets under tomcat and > >>>how can I get it started in the debugger under tomcat? Any help > >>>would be appreciated. > >>> > >>> > >> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > >> > >> > > > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > >********************************************************************** > >This email and any files transmitted with it are confidential and > >intended solely for the use of the individual or entity to whom they > >are addressed. If you have received this email in error please notify > >the system manager. > > > >This footnote also confirms that this email message has been swept by > >MIMEsweeper for the presence of computer viruses. > > > >www.clearswift.com > >********************************************************************** > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > > www.clearswift.com > ********************************************************************** > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org