in src/SourceMapToolkit.CallstackDeminifier/DeminifyStackTraceResult.cs [13:40]
public override string ToString()
{
StringBuilder sb = new StringBuilder();
if (!string.IsNullOrEmpty(Message))
{
sb.Append(Message);
}
for (int i = 0; i < DeminifiedStackFrameResults.Count; i++)
{
StackFrame deminFrame = DeminifiedStackFrameResults[i].DeminifiedStackFrame;
// Use deminified info wherever possible, merging if necessary so we always print a full frame
StackFrame frame = new StackFrame()
{
MethodName = deminFrame.MethodName ?? MinifiedStackFrames[i].MethodName,
SourcePosition = deminFrame.SourcePosition != SourcePosition.NotFound ? deminFrame.SourcePosition : MinifiedStackFrames[i].SourcePosition,
FilePath = deminFrame.SourcePosition != SourcePosition.NotFound ? deminFrame.FilePath : MinifiedStackFrames[i].FilePath
};
sb.AppendLine();
sb.Append(" ");
sb.Append(frame);
}
return sb.ToString();
}