Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Debugging java on unix

 
Anand Loni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Debug via the command line? I think you need an IDE for that.
 
Anand Loni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah right, sorry - showing my age. You mean using the JDB?
[ August 30, 2007: Message edited by: Paul Sturrock ]
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anand Loni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic