Skip to main content

Java Debug Level

1 reply [Last post]
keshari
Offline
Joined: 2008-05-23

Hi all

Is there any way without using any IDE and "System.out.println" command,to debug a java programme by using command prompt.
I have heard about "Java Debug Level" in jdk,anybody can help me,that how can I set the Debug level?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
giulio79
Offline
Joined: 2008-05-26

Hi,

I'm not sure I get what you mean, but probably JDB is what you are looking for (http://java.sun.com/j2se/1.3/docs/tooldocs/solaris/jdb.html)

Another resource I recommend you to read for debugging is:
http://www.digilife.be/quickreferences/PT/Java%20debugging.pdf

alternatively to system.out.println you may want to use the Log4J option, that's pretty similar to the idea of sysout, but you can configure your logging much more. That's the industry standard for logging

hope this helps,
Giulio