Java – Viewing complete strings while debugging in Eclipse

debuggingeclipsejava

While debugging Java code, Strings in the views "Variables" and "Expressions" show up only till a certain length, after which Eclipse shows "…"

Is there any way to inspect the entire string? (This eases the pain of adding logging statements for debugging everywhere)

Best Answer

In the Variables view you can right click on Details pane (the section where the string content is displayed) and select "Max Length..." popup menu. The same length applies to expression inspector popup and few other places.

enter image description here