File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes IDE's, the command line, and debuggers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "IDE Watch "IDE New topic
Author

IDE's, the command line, and debuggers

Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

I read that Java beginners should use the command-line to compile and run programs using the javac and the java commands.

If I do this, is there an easy way to run a debugger that allows me to step through my source code, and to inspect the values of variables?

-- Kaydell
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

There's "jdb", the command-line debugger that comes with the JDK.


[Jess in Action][AskingGoodQuestions]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41808
    
  62
While I agree that knowing how to use the command line for compiling and running is quite beneficial, I wouldn't extend that to debugging, especially as jdb is very basic. For a great standalone (i.e., not integrated in an IDE) debugger, check out JSwat.


Ping & DNS - my free Android networking tools app
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

I found JSwat at:

JSwat Web-Site

I vote "no" for Eclipse and NetBeans because my source windows are a shared, small window-pane. I like larger overlapping windows.

BlueJ was terrible. I couldn't even type in a package declaration without choosing a menu to do everything for me. Too much hand-holding can be restraining.

I'm trying JSwat, but it told me that I don't have Java 5.0 installed, but I do (by the way I'm running Mac OS 10.4.8).

The JSwat web-site said that it works with all platforms.

The best Java IDE that I've found to suit me is Apple's XCode. It's free and it has features that I like, like overlapping winows, and you have freedom to be in control of the IDE. The main drawback of the XCode IDE is that it is not cross-platform. The .java files are of course, it's just the .project file that isn't cross-platform.

-- Kaydell
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IDE's, the command line, and debuggers