Add ability for gauntlet to parse BP script callstack from error messages matching regex \[ScriptStack\]\s*.+

#rb jerome.delattre,andrew.grant

[CL 28686064 by robert millar in ue5-main branch]
This commit is contained in:
robert millar
2023-10-11 18:01:04 -04:00
parent 6a8f579128
commit 282ab23d55

View File

@@ -838,9 +838,21 @@ namespace Gauntlet
LinesWithoutBacktrace = 0;
}
else
else
{
LinesWithoutBacktrace++;
// Callstack may be prefixed (or interspersed?) with callstack from blueprint script VM
Match ScriptCSMatch = Regex.Match(Line, @"\[ScriptStack\]\s*(.+)$", RegexOptions.IgnoreCase);
if (ScriptCSMatch.Success)
{
string Stack = ScriptCSMatch.Groups[1];
Backtrace.Add(Stack);
LinesWithoutBacktrace = 0;
}
else
{
LinesWithoutBacktrace++;
}
}
SearchContent = SearchContent.Substring(EOL + 1);