开发者

jdb and jde with emacs ( name unknown)

开发者 https://www.devze.com 2023-02-04 12:31 出处:网络
main[1] print myVariable com.sun.tools.example.debug.expr.ParseException: Name unknown: myVariable myVariable = null

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

精彩评论

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

关注公众号