aspose file tools*
The moose likes Java in General and the fly likes Debugging java on unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Debugging java on unix" Watch "Debugging java on unix" New topic
Author

Debugging java on unix

Anand Loni
Ranch Hand

Joined: Jan 20, 2006
Posts: 150
Hi Ranchers,

I want to debug java programs through command line on Unix/Linux. I couldn't find much information on Internet. Can anybody suggest some good sites or book where I can get useful information.

Thanks,
Anand


~ Anand,
SCJP 1.5, SCWCD 1.5
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Debug via the command line? I think you need an IDE for that.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Anand Loni
Ranch Hand

Joined: Jan 20, 2006
Posts: 150
Yes, we can debug through command line. I know how to complile with debug on, compile javac -g filename.java. But I want more information on how to set breakpoint etc.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Ah right, sorry - showing my age. You mean using the JDB?
[ August 30, 2007: Message edited by: Paul Sturrock ]
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
Yes, JDB is the command-line debugger. Like GDB, whose name it apes, it is very capable, but decidedly difficult to get to grips with.

Note that, if you have native code, you can use JDB and GDB together, to debug the whole thing.


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Anand Loni
Ranch Hand

Joined: Jan 20, 2006
Posts: 150
Thanks
 
Consider Paul's rocket mass heater.
 
subject: Debugging java on unix