Grouping Errors

Highlight groups errors together based on their error message and stack trace. When an error is thrown, Highlight finds the closest matching error and adds the new error instance to it.

An error is matched if:

  1. It has the same error message OR
  2. It has the same top stack frame and 3 of the next 4 stack frames are the same (in any order)

A stack frame is matched if:

  1. It has the same filename, function name, line number, and column number OR
  2. It has the same source code and context (if sourcemaps are enabled)

If there is no match with an existing error, a new error is created instead.

All error instances and their relevant sessions can be viewed in the panel at the bottom-right of the errors page:

Document image

Updated 22 Mar 2022
Did this page help?