Re: String Index out bound exception : 34
On Jun 30, 10:55 pm, Lew <l...@xxxxxxxxxxxxx> wrote:
...
You're most likely getting an error (*what* error? Please copy-and-paste it
into your post in future) ...
<
http://pscode.org/javafaq.html#exact>
You ignore every exception, so of course you lack the information necessary to
debug the code.
<
http://pscode.org/javafaq.html#stacktrace>
..Put logging statements, or at the very, very least
System.err.println() ...
If I call ..
System.err.println( e.getMessage() );
.. I often look at the message and immediately
think - 'I need a stacktrace of that'..
e.printStackTrace();
..aah yes, that's better. It's also shorter.
(Yes, logging is superior to either.)
--
Andrew Thompson
http://pscode.org/
.
Relevant Pages
- Re: permissions on /etc/namedb
... after initially resisting the idea of using rndc trace being 'advanced'. ... Query logging has its own log category, so you would do something like ... Same with debug logging; I'm ... The problem is that the default_debug channel has a special ... (freebsd-net) - Re: lew? 2 qq
... Everyone writes to the same channel, and the logging overhead to stderr is incurred with every call; that can have an adverse impact on performance. ... you have to invent your own formats, disentangle all the output from multiple sources, disentangle important output from less so, and you can't selectively suppress some log output and not other. ... All less critical messages ("WARNING", "DEBUG", etc.) not only are not emitted, they have negligible impact on production performance. ... Logging is configurable at deployment time via an external resource file, so you don't even have to hard-code all that control. ... (comp.lang.java.help) - RE: Error in Release Mode
... The text logging was a good idea. ... some initializations were causing the problems... ... >> In the debug case, m_btestcase may always be false in which case your code ... >> it very useful to create a logging class that writes a textfile. ... (microsoft.public.win32.programmer.directx.video) - [PATCH] firedtv: reinstate debug logging option
... Henrik Kurelid tells me that FCP debug logging (which I removed during ... instead of -1 enables only hexdumps of the entire FCP frames. ... (Linux-Kernel) - Re: C# exe calling an exe (process.start) - not working on one ser
... Check the exit code from the process (if you set exit codes in ... The problem what Std out redirection related. ... > logging... ... >>> Since it is a production server, I cannot debug the code there and I ... (microsoft.public.dotnet.general) |
|