Debugging in Console

A

Araxes Tharsis

Hi,
I am developing a Web Service with Axis to run in Windows, but would like to
see debug messages in a console (instead of a file or a database) - like is
usual with System.out.println(). Any simple way to open a Command Prompt and
show messages in it?
Thank you,
Araxes Tharsis
 
A

Araxes Tharsis

Instead of opening a console window, I guess it is easier to open a JFrame
with a JTextArea... and that I can do.
 
A

Alan Meyer

Araxes Tharsis said:
Hi,
I am developing a Web Service with Axis to run in Windows, but would like to
see debug messages in a console (instead of a file or a database) - like is
usual with System.out.println(). Any simple way to open a Command Prompt and
show messages in it?
Thank you,
Araxes Tharsis

A trivially simple approach that solves this is to write to a file,
then open a console window and use "tail -f filename" to watch
the message file, or "less -F filename". Then you get the best of
both worlds, a running display of messages, and a permanent
record of messages in the file.

tail and less are UNIX utilities, but they are also available in
Windows versions. They are open source and free. Just search
for them on the net and download them and you're in business.

Alan
 
M

Matt Parker

Alan said:
tail and less are UNIX utilities, but they are also available in
Windows versions. They are open source and free. Just search
for them on the net and download them and you're in business.

Slightly OT, but cygwin is what the OP wants for these commands (to save a
search for the individual commands) - http://www.cygwin.com/

I use it whenever I'm forced to move away from my beloved Linux desktop or
Solaris boxen to a Windows environment. I can't live without it the Unix
shell...

Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top