在Ubuntu中调试Java代码主要有以下两种方式:
-g
javac -g YourJavaFile.java
jdb YourJavaFile
stop at YourJavaFile:行号
run
step
print