Bug 551048 - Java Console has limit of 32 000 characters
Summary: Java Console has limit of 32 000 characters
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.20   Edit
Hardware: PC Windows 10
: P3 major with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-13 07:17 EDT by Peter Sivy CLA
Modified: 2023-08-29 11:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Sivy CLA 2019-09-13 07:17:24 EDT
Scenario:
Setting in Window->Preferences->Run/Debug->Console:
Fixed width console: off
Limit console output: off

Run this:
	public static void main(String[] args) {
		for (int i = 0; i < 32000; i++) {
			System.out.print("0");
		}
	}

You will see 32000x "0". Change 32000 to 32001 and you will see empty console.

Hack to make it work is:
Setting in Window->Preferences->Run/Debug->Console:
Fixed width console: on - set any "Maximum character width:", max is 1000, it's ok
Limit console output: off

With 32001 in for cycle, you will see all characters in console, since they are split by 1000 ("Maximum character width:" setting).

It will be good to fix displaying of large amount of texts, for example JSONObjects and so on...
Comment 1 Eclipse Genie CLA 2021-09-03 09:33:11 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Peter Sivy CLA 2021-09-06 01:30:30 EDT
still occurs in 2021-06
Comment 3 Sarika Sinha CLA 2021-09-07 02:36:29 EDT
(In reply to Peter Sivy from comment #2)
> still occurs in 2021-06

Have you tried changing the default size in Eclipse ->Preferences -> Run/Debug -> Console ?
Comment 4 Eclipse Genie CLA 2023-08-29 11:33:56 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.