Blog-Archiv

Freitag, 31. Juli 2020

Stack Trace Reducer

I find this utility extremely useful, so I expose it here 'for our pleasure'. It not only reduces stack trace lines but any kind of lines, you just need to adjust the filters. Leading spaces are ignored.

stack trace lines to what is significant and interesting.

Input
Output
Filters
Significant Lines
OR
OR
OR
OR
OR
BUT NOT
AND NOT

A significant line will be preceded by "...." and its preceding skipped line. At end of all significant lines there will be the following skipped line and a "....". In case a significant line is followed by an interesting one, there will be no "...." in between.

Interesting Lines
OR
OR
OR
OR
OR
BUT NOT
AND NOT

An interesting line is like a significant one, except that the preceding and the following skipped lines will not be around it. In case an interesting line is followed by a significant one, there will be no "...." in between.

Terminating Lines
OR
OR
OR
OR
OR

After a terminating line, nothing will be output any more, in case at least one significant line was found before. A terminating line would be displayed just when it directly follows a significant line.


There are developer stories around this utility. First is the filter-automaton, implemented as state pattern in Java and then transpiled into JavaScript via JSweet. Second is the layout of the textareas, you may have noticed that they are resizable and responsive and similar to a split-pane. I am looking forward to tell these stories in further Blogs.




Keine Kommentare: