Increase output buffer when running or debugging i

2019-01-18 08:55发布

My console output is exceeding PyCharm's buffer size in the Run output window. So when I scroll to the top after a test completes, I can't get all the way to the start of the console output. I can run the tests in an external terminal window and see all the output, but the integration with PyCharm is handy.

Is there a way to increase the buffer size of the PyCharm run output so I can retain all my logging output and scroll right to the top?

标签: pycharm
3条回答
Luminary・发光体
2楼-- · 2019-01-18 09:29

At least as of PyCharm Community Edition 5.0.3, IntelliJ does not recommend editing bin/idea.properties. From the URL mentioned above:

The file idea.properties, located in the bin directory of the IntelliJ IDEA installation folder, should not be edited. Instead of editing the original idea.properties, create file idea.properties in the location specified below, open it for editing and add the required properties.

I discovered an easy way to do that: from PyCharm, run Help->Edit Custom Properties. This opens an editor window on an empty file where you can make and save options. In my case the file was saved at %USERPROFILE%\.PyCharm50\idea.properties.

Also, rather than completely disable the circular buffer, you may want to increase it from its default of 1024k, e.g. to idea.cycle.buffer.size=2048

Though it's apparently missing in JetBrains' documentation, I found it necessary to exit and restart PyCharm before this took effect with PyCharm CE 5.0.3 under Windows 7 Pro.

BTW, the bin/idea.properties file (C:\Program Files (x86)\JetBrains\PyCharm Community Edition 5.0.3\bin\idea.properties on my system) is still a good place to find out what settings may be edited and their current values.

查看更多
在下西门庆
3楼-- · 2019-01-18 09:35

Yes, you can edit the idea.cycle.buffer.size setting within the bin/idea.properties file within the installation folder (or within the Application package on OS X).

Setting:

idea.cycle.buffer.size=disabled

disables the cyclic buffer.

See https://www.jetbrains.com/idea/help/file-idea-properties.html for details.

查看更多
Fickle 薄情
4楼-- · 2019-01-18 09:43

For PyCharm Community 2016.3 (Mac) you can increase the size of console buffer in the application Preference as follows:

How to increase the buffer size in a nutshell

查看更多
登录 后发表回答