private async Task InternSourceFile(string fileName) { if (!m_sourceMap.Contains(fileName)) { var sourceCode = await Inferior.GetSource(fileName); if (sourceCode == null) { return; } var regex = new Regex(@"\s*\/\/(?:@|#) sourceMappingURL=data:application\/json;.*base64,(\S*)$", RegexOptions.Multiline); var match = regex.Match(sourceCode); if (match.Success) { var jsonData = Convert.FromBase64String(match.Groups[1].Value); var mapJson = Encoding.UTF8.GetString(jsonData); m_sourceMap.AddSource(fileName, mapJson); } } }