Character limit for System.out.println() in Java

TKV picture TKV · Jan 18, 2012 · Viewed 13.6k times · Source

Is there any character limit for the output of Java's System.out.println(String x) statement?

When I try to print some XML from a web service call using System.out.println(), only a portion of it is actually printed in the console.

The XML string that I am trying to print is huge.

Why is this happening?

Answer

quaylar picture quaylar · Jan 18, 2012

Are you experiencing this within Eclipse? If yes:

EDIT:

  1. Go to Window > Preferences > Run/Debug > Console
  2. Uncheck "Limit Console Output" (Alternatively you can increase the Console buffer size.)

Source