Question:
Does anyone know of a Java compiler that allows you to compile line by line?
quackerjackets
2006-08-07 17:21:42 UTC
Does anyone know of a Java compiler that allows you to compile line by line?

I am a Java newbie and I was hoping someone might know of compiler that functions line by line so I could get a better understanding of the results of each line. It would be great if someone knew of a compiler that also showed the changing results of values on the side too.

Thanks
Four answers:
zoha
2006-08-07 18:55:05 UTC
u can print the values out by System.out.println();

for instance print the values in functions or in each line and specify the line number so u can see how compiler compiles the program.
2006-08-08 00:40:29 UTC
u can do that using a normal compiler by putting a break point at every line

and u can put the variables in the watch window to check their value every break point

this is in Visual studio IDE" integrated Development environment"

they have a visual Java# compiler
2006-08-11 15:54:22 UTC
use the command line tool "javap.exe" to see what is going on in your code. this file is in your jdk/bin folder. usage is

$> javap -c yourclassfile

this is not a line by line compiler but you will see what does Java do with your code.
FL
2006-08-11 05:05:57 UTC
Use Eclipse IDE. That's free...and easy to use...


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...