示例#1
0
        /// <summary>
        /// Deobfuscate the given stacktrace using the given map file.
        /// </summary>
        internal static string DeObfuscate(string stacktrace, IEnumerable <MapFile> maps)
        {
            // Add a whitespace before the stacktrace. The regular expressions may need them.
            stacktrace = stacktrace.Replace("\\r\\n", "\\n");
            stacktrace = stacktrace.Replace("\\n", Environment.NewLine);
            var converter = new StackTraceConverter(" " + stacktrace, maps.ToList());

            return(converter.sb.ToString().Substring(1));
        }
示例#2
0
 /// <summary>
 /// Deobfuscate the given stacktrace using the given map file.
 /// </summary>
 internal static string DeObfuscate(string stacktrace, IEnumerable<MapFile> maps)
 {
     // Add a whitespace before the stacktrace. The regular expressions may need them.
     stacktrace = stacktrace.Replace("\\r\\n", "\\n");
     stacktrace = stacktrace.Replace("\\n", Environment.NewLine);
     var converter = new StackTraceConverter(" " + stacktrace, maps.ToList());
     return converter.sb.ToString().Substring(1);
 }