Bug 65867

Summary: application window grouping output lines.
Product: [Applications] kdevelop Reporter: Pupeno <pupeno>
Component: Output ViewsAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED INTENTIONAL    
Severity: wishlist    
Priority: NOR    
Version: 3.0.0a5   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Pupeno 2003-10-11 16:58:25 UTC
Version:           3.0.0a5 (using KDE 3.1.4)
Installed from:    Gentoo
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)
OS:          Linux (i686) release 2.4.22-openmosix

Like syslog's feature of grouping lines that are the same, I think that the application window could group lines that are the same... so, if in a loop I print 10000 times the same line, the application window could show the count and not 10000 lines.
Of course, this should be configurabe (right clicking on the window like in the messages window).
I think it would be kewl if it printed a line, for example "This is a line" like this
This is a line
and the, when it comes again, added in bold font and another color like blue or red the number of time it appeared at the end, so, the next time "This is a line" is printed it could show
This is a line [2]
and then
This is a line [3]
of course, as much as it is printed without other diferent lines being printed.
it could also be intrested in grouping more than one line
This is one line
This is another line

This is one line [2]
This is another line [2]

This is one line [3]
This is another line [3]

and separate the group of lines with colors of the numbers (too advanced and weird ?)
Thanks.
Comment 1 Vladimir Prus 2006-04-27 16:45:00 UTC
Is it typical for application to print identical lines in a loop? Sounds pretty rare situation to me, can you explain when it can happen?
Comment 2 Gaƫl de Chalendar (aka Kleag) 2006-04-27 16:53:59 UTC
Maybe during debugging with outputs to stdout ?
Comment 3 Andreas Pakulat 2008-06-29 16:49:00 UTC
IMHO we shouldn't encourage debugging-via-printf but debugging with a real debugger. Closing as wontfix.