aspose 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 688

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: 24168
    
  30

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


[Jess in Action][AskingGoodQuestions]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
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 - updated with new look and Ping home screen widget
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 688

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
 
Similar Threads
How to run command line source from java editors
Jar file doesn't work
executable jar help
Stored procedure cannot be imported from java...?
java class to parse a command line string