You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "C.F. Scheidecker Antunes" <na...@antunes.eti.br> on 2005/08/21 23:31:26 UTC

How to Debug easier

Hello all,

If I have a System.out.Println() statement on my Struts code where would 
that be written to?

I would like to write stuff to either the console or the Tomcat log text 
file. How can I achieve that?

System.out.println() does not seem to be doing anything.

I want to know what it is going on at run time to make it easier to 
debug stuff.

Any suggestions?

Thanks,

C.F.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How to Debug easier

Posted by Laurie Harper <la...@holoweb.net>.
C.F. Scheidecker Antunes wrote:
> Hello all,
> 
> If I have a System.out.Println() statement on my Struts code where would 
> that be written to?
> 
> I would like to write stuff to either the console or the Tomcat log text 
> file. How can I achieve that?
> 
> System.out.println() does not seem to be doing anything.
> 
> I want to know what it is going on at run time to make it easier to 
> debug stuff.

System.out.println writes to standard output. That will go to the console 
by default. Depending on your application server, stdout may be redirected 
to a file -- for example, logs/catalina.out.

To log to the Tomcat logs, you can use the standard Servlet API logging 
functions. Or you could use Log4j / Java Logging / Jakarta Commons Logging 
if you want more control over your log output. But if all you want is quick 
debugging output, System.out.println should be fine.

L.
-- 
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/laurie


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re:How to Debug easier

Posted by netsql <ma...@roomity.com>.
I use https://simple-log.dev.java.net

.V


----------------------------------------------------------------------------------------------------
People are conversing... without posting their email or filling up their mail box. ~~1124674147263~~
roomity.com http://roomity.com/launch.jsp No sign up to read or search this Rich Internet App
----------------------------------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How to Debug easier

Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
Wendy turned me on to JSwat... as someone who historically hasn't found 
much use for a debugger, I have to say it has been a joy to use.  And it 
is a fairly light app, certainly far lighter than a full IDE would be. 
If you develop under Tomcat, it attaches very easily too.  If anyone 
feels the need to use a debugger, I very much recommend JSwat.

Frank

Martin Gainty wrote:
> I would urge you to strongly consider Oracle JDeveloper
> with the caveat that *any* debugger is/are severely resource hungry for 
> both diskspace and memory
> If you want to run your app lite on it feet ..logging is still the best 
> way to go
> HTH,
> Martin-
> ----- Original Message ----- From: "Larry Meadors" 
> <la...@gmail.com>
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Sent: Monday, August 22, 2005 10:57 AM
> Subject: Re: How to Debug easier
> 
> 
> Why not just use a debugger?
> 
> There are several very good free debuggers available - netbeans,
> eclipse, jedit, ...
> 
> Simple to set up, and a bit less "predictive" to use. (By that, I mean
> instead of trying to log what you think the problem might be, you can
> examine it as it is running to SEE what the problem really is.)
> 
> Larry
> 
> On 8/21/05, C.F. Scheidecker Antunes <na...@antunes.eti.br> wrote:
> 
>> Hello all,
>>
>> If I have a System.out.Println() statement on my Struts code where would
>> that be written to?
>>
>> I would like to write stuff to either the console or the Tomcat log text
>> file. How can I achieve that?
>>
>> System.out.println() does not seem to be doing anything.
>>
>> I want to know what it is going on at run time to make it easier to
>> debug stuff.
>>
>> Any suggestions?
>>
>> Thanks,
>>
>> C.F.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 
> 
> 

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How to Debug easier

Posted by Martin Gainty <mg...@hotmail.com>.
I would urge you to strongly consider Oracle JDeveloper
with the caveat that *any* debugger is/are severely resource hungry for both 
diskspace and memory
If you want to run your app lite on it feet ..logging is still the best way 
to go
HTH,
Martin-
----- Original Message ----- 
From: "Larry Meadors" <la...@gmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Monday, August 22, 2005 10:57 AM
Subject: Re: How to Debug easier


Why not just use a debugger?

There are several very good free debuggers available - netbeans,
eclipse, jedit, ...

Simple to set up, and a bit less "predictive" to use. (By that, I mean
instead of trying to log what you think the problem might be, you can
examine it as it is running to SEE what the problem really is.)

Larry

On 8/21/05, C.F. Scheidecker Antunes <na...@antunes.eti.br> wrote:
> Hello all,
>
> If I have a System.out.Println() statement on my Struts code where would
> that be written to?
>
> I would like to write stuff to either the console or the Tomcat log text
> file. How can I achieve that?
>
> System.out.println() does not seem to be doing anything.
>
> I want to know what it is going on at run time to make it easier to
> debug stuff.
>
> Any suggestions?
>
> Thanks,
>
> C.F.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How to Debug easier

Posted by Larry Meadors <la...@gmail.com>.
Why not just use a debugger?

There are several very good free debuggers available - netbeans,
eclipse, jedit, ...

Simple to set up, and a bit less "predictive" to use. (By that, I mean
instead of trying to log what you think the problem might be, you can
examine it as it is running to SEE what the problem really is.)

Larry

On 8/21/05, C.F. Scheidecker Antunes <na...@antunes.eti.br> wrote:
> Hello all,
> 
> If I have a System.out.Println() statement on my Struts code where would
> that be written to?
> 
> I would like to write stuff to either the console or the Tomcat log text
> file. How can I achieve that?
> 
> System.out.println() does not seem to be doing anything.
> 
> I want to know what it is going on at run time to make it easier to
> debug stuff.
> 
> Any suggestions?
> 
> Thanks,
> 
> C.F.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How to Debug easier

Posted by Martin Gainty <mg...@hotmail.com>.
C.F.
You can log to any of the available logs or write your own Custom LogHandler
Take a look at how to configure logging at
http://docs.sun.com/source/819-0076/logging.html
HTH,
Martin--
----- Original Message ----- 
From: "C.F. Scheidecker Antunes" <na...@antunes.eti.br>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Sunday, August 21, 2005 5:31 PM
Subject: How to Debug easier


> Hello all,
>
> If I have a System.out.Println() statement on my Struts code where would 
> that be written to?
>
> I would like to write stuff to either the console or the Tomcat log text 
> file. How can I achieve that?
>
> System.out.println() does not seem to be doing anything.
>
> I want to know what it is going on at run time to make it easier to debug 
> stuff.
>
> Any suggestions?
>
> Thanks,
>
> C.F.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org