java - Is it possible to display toString() result in value column in Eclipse debugger? -


is possible display tostring() result in value column in eclipse debugger?

by default displays values built-in types , type name + id user types:

enter image description here

note, debugger can display tostring(), in separate section (below), not in value column.

it possible, if bit clumsy. 1 picture, more thousand words:

enter image description here

in preferences, search "detail formatters". optionally define simple return command each type want inspect (if want choose details yourself).

then down below, select "show variable details > label variables" (if tostring() enough you), or "> label variables detail formatters" if want use custom formatters. former makes "type + id" display vanish, tho.

simple formatter "not tostring()": detail formatter "other"


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -