Accepted 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


for javascript based debugging on eclipse, "change value" method and "max length" method both failed for me, adding the required object to watch(expressions) and then right clicking the watched expression to select "load full value" is the only solution that works for me, but even this inserts unwanted "\n" in the output.

note - "max length" must be set for the "load full value" to work as it loads values till max length(default in eclipse is 10000). refer above answer to see how to set max length.


there is no "maxlength" in eclipse mars. and, the "change value" only works with "variables", not "expressions", so none of above works for me.

enter image description here

and, the expression are cut in the middle, not at the end. i guess they changed the default behaviour.

the only thing working for me, is to expand the expression name column's width, and click the expression to select it all to see the full length content.


nothing from the above worked for me, moreover, some user interface elements in my eclipse can not be found as described. i'm using sts 4.3.1.

the value i needed was really big, it is part of a huge json request. workaround is to use an expression in eclipse debug shell console and to output the substring of the whole value. since you can see the partial value, inspect it and use the last few literals as the position to output the next chunk of the string. repeat this approach until get what you need:

string result = new string(reallybigbytearrayvalue, "utf-8");


in eclipse ide 2020-09 it's "pretty print to console" on right click. right click dialog

from the console the copying is possible at full length.


when debugger reaches the point where you want the string value, just type a sysout statement

system.out.println("the value is : \n " + query);

select the above the statement, right click-> execute

it will print the value on the console


the best way to view a string value from eclipse debug view is as below.

1) switch to debug view in eclipse

2) select the desired variable in variable pane.

3) right click on display area of variable pane where value is shown and click on max length. enter the maximum char value in configure details pane .

4) cheers

enter image description here


if you have a really long string, i use a different strategy: dump it to a file. i have a snippet of code i use in the display view, which is evaluated to dump the data to a file. i use commons io, but you can do it with jdk only methods."<filename>"), <expression to evaluate>);

naturally, you will need the commons io jar in your classpath for that to work. if you don't, resort to jdk work.


in the variables view you right-click on the variable and select change value. if your variable is huge you have to wait a few minutes (in this case eclipse doesn't respond to commands) but in the end eclipse will show your variable entirely.

Related Query

More Query from same tag