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 happen? I can place breakpoints as I'm used to, but I cannot access variables.

+3
source share
1 answer

When you compile your code, make sure that you execute it in debug mode:

javac -g *.java

You can then print the variables during debugging.

+5
source

Source: https://habr.com/ru/post/1785344/


All Articles