Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #3176

Re: ArrayList in Eclipse

From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: ArrayList in Eclipse
Date 2011-04-20 20:01 -0700
Organization A noiseless patient Spider
Message-ID <ioo6mg$v5e$1@dont-email.me> (permalink)
References <919alnF872U1@mid.individual.net>

Show all headers | View raw


On 4/20/2011 5:05 PM, Dirk Bruere at NeoPax wrote:
> I have an arraylist that I load with stuff when the app starts.
> Is there any way I can check its contents in debug mode in an ongoing
> basis?
>

If it's really an issue you might consider put a log statement with a 
log level of FINEST on that variable.  If it's an issue now it's likely 
to be an issue at some point in the future.

You strike me as new to Java, if not new to programming in general. 
This statement from the log4j page is interesting:

 >
"Inserting log statements into your code is a low-tech method for 
debugging it. It may also be the only way because debuggers are not 
always available or applicable. This is often the case for distributed 
applications.

"On the other hand, some people argue that log statements pollute source 
code and decrease legibility. (We believe that the contrary is true)."
<

I've also found that well placed log statements are a faster way of 
debugging than stepping through code in a debugger.  And debuggers can't 
be used when timing is a source of error.

<http://logging.apache.org/log4j/1.2/>

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

ArrayList in Eclipse Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-21 01:05 +0100
  Re: ArrayList in Eclipse Lew <noone@lewscanon.com> - 2011-04-20 22:52 -0400
  Re: ArrayList in Eclipse markspace <-@.> - 2011-04-20 20:01 -0700
    Re: ArrayList in Eclipse "Nasser M. Abbasi" <nma@12000.org> - 2011-04-20 21:21 -0700
      Re: ArrayList in Eclipse Lew <noone@lewscanon.com> - 2011-04-21 00:46 -0400
      Re: ArrayList in Eclipse Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-04-21 06:23 -0300
    Re: ArrayList in Eclipse Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-21 22:20 +0100
      Re: ArrayList in Eclipse Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-04-21 20:55 -0400
        Re: ArrayList in Eclipse markspace <-@.> - 2011-04-21 19:21 -0700
          Re: ArrayList in Eclipse Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-24 16:04 +0100

csiph-web