How to stop IntelliJ truncating output when I run a build?

Intellij Idea

Intellij Idea Problem Overview


When I run our build from IntelliJ it pumps out a lot of debugging.

But it gets truncated in the Run console.

Can I make IntelliJ preserve more output?
Or, preferably, all of it?

Intellij Idea Solutions


Solution 1 - Intellij Idea

By a popular request Override console cycle buffer size setting was added to the UI 9/14/16:

Override console cycle buffer size


Original answer for older versions:

Edit your IDEA_HOME\bin\idea.properties file, and increase this setting:

#-----------------------------------------------------------------------
# This option controls console cyclic buffer: keeps the console output size not higher than the specified buffer size (Kb). Older lines are deleted.
# In order to disable cycle buffer use idea.cycle.buffer.size=disabled
idea.cycle.buffer.size=1024

then restart IntelliJ.

Solution 2 - Intellij Idea

This can (now) be edited in the Intellij IDEA settings.

Intellij IDEA Settings: Console

This has probably been in Intellij IDEA for a while, and certainly is as of Intellij IDEA 15.

Solution 3 - Intellij Idea

The problem increasing the console cylce buffer size is that you are likely to run out of heap space, and then you will need to bump up the max heap size. For an app that generates a very large amount of output it probably won't help as you will not have enough physical memory.

I would suggest instead that you capture the console output in a file.

Solution 4 - Intellij Idea

With IntelliJ 11 (on the Mac at least), this setting is configured instead in Info.plist:

IDEA_HOME/Contents/Info.plist

There should already be a value there so just modify it instead of adding a new one.

Solution 5 - Intellij Idea

You could use this shortcut

Ctrl + Shift + A

then search "Override console cycle buffer size" to get to the settings.

Solution 6 - Intellij Idea

If you are using saved configurations to start your app, make sure this option is disabled: "Emulate terminal in output console". With this option enabled, the output would be always cut after a few hundred lines. Without it, I think the option described in the other answers is respected.

enter image description here

Solution 7 - Intellij Idea

Accepted answer did not work for me (IntelliJ IDEA 2021.2 Mac). What did work was increasing "Terminal scrollback buffer size" in Preferences/Advanced Settings.

Screenshot of terminal scrollback buffer size.

Solution 8 - Intellij Idea

If you picked this option, IDEA also cuts the output. img

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPaul McKenzieView Question on Stackoverflow
Solution 1 - Intellij IdeaCrazyCoderView Answer on Stackoverflow
Solution 2 - Intellij IdeaamaidmentView Answer on Stackoverflow
Solution 3 - Intellij IdeaAdil QureshiView Answer on Stackoverflow
Solution 4 - Intellij IdeaChris WilliamsView Answer on Stackoverflow
Solution 5 - Intellij IdeaN DevView Answer on Stackoverflow
Solution 6 - Intellij IdeaHubert GrzeskowiakView Answer on Stackoverflow
Solution 7 - Intellij IdeaYitzchok GinzbergView Answer on Stackoverflow
Solution 8 - Intellij IdeasoraView Answer on Stackoverflow