开发者

jdb and jde with emacs ( name unknown)

main[1] print myVariable

com.sun.tools.example.debug.expr.ParseException: Name unknown: myVariable

myVariable = null

Any guesses as to why this might b开发者_高级运维e happening? I can place breakpoints like I'm used to, but I can't access the variables.


When you compile your code, make sure you do it debug mode:

javac -g *.java

You should then be able to print the variables during debugging.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜