• Post Reply Bookmark Topic Watch Topic
  • New Topic

Are There Debuggers For the Command Line?  RSS feed

 
Bob Scott
Ranch Hand
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that some people like to use the command line. Is there something equivalent to the debugger for the command line?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's jdb, a command-line debugger included with the JDK. I've never used it, so I can't tell you how useful (or not) it is.

See: http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html
 
Campbell Ritchie
Marshal
Posts: 56595
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found a couple of tutorials for jdb: 1 2, and there are more. One of those articles is 13 years old.
 
Bob Scott
Ranch Hand
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info. I'll look it over and see how it is.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you really mean a character-based debugger? Or just one that's not part of an IDE? If the latter, I recommened JSwat.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for command line, I use System.out.println() a lot.

OK, not technically a debugger, but it works for a lot of things. So depending on what exactly you need, it may to the trick.
 
Bob Scott
Ranch Hand
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was thinking of one that was not part of the IDE. Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!