In Eclipse you can write a random expression in debug and it evaluates it. This is my code:
public static void main(String... args) {
int x = 3;
* System.out.print(x);
}
in the breakpoint I want to watch the expression
x
Then it shows 3.
But if I watch a custom expression like:
new java.util.Date()
which should return the current date, it displays
?