Eclipse: changing a variable description in debug mode

Can I change the description of a variable?
eclipse debug variables

I want to see my own line in this place. I want to create this line myself. for instance

"RTKAccount number=111 and FGSFDS"

insead of

"RTKAccount (id=830039244504)".  

I tried changing the method toString()in my class, but it did not work.

public String toString() {
    return "RTKAccount id=" + this.id + " number=" + this.number;
}
+3
source share
2 answers

What you are looking for are detailed formats .

Right-click on a variable in the Variable view and select Create Detailed Format .... In the wizard, enter this in the large text area:

"RTKAccount id=" + id + " number=" + number

And you have it; -)

+4
source

You can change the value of a variable by right-clicking it → Change value

0

All Articles