public static bool FindSourceCode(string frame) { string filenameMatch; int lineNumberMatch; string method; return(ExceptionViewerStackTraceWithHyperlinks.MatchStackLine(frame, out filenameMatch, out lineNumberMatch, out method)); }
public static string GetMethodName(string frame) { string filenameMatch; int lineNumberMatch; string method; ExceptionViewerStackTraceWithHyperlinks.MatchStackLine(frame, out filenameMatch, out lineNumberMatch, out method); return(method); }
protected override void OnViewStackTrace() { if (ExceptionViewerStackTraceWithHyperlinks.IsSourceCodeAvailable(_exception)) { ExceptionViewerStackTraceWithHyperlinks.Show(_exception); } else { base.OnViewStackTrace(); } }
private bool PopulateSourceCode(string frame) { string filenameMatch; int lineNumberMatch; string method; HasSourceCode = ExceptionViewerStackTraceWithHyperlinks.MatchStackLine(frame, out filenameMatch, out lineNumberMatch, out method); Filename = filenameMatch; LineNumber = lineNumberMatch; Method = method; return(HasSourceCode); }
protected virtual void OnViewStackTrace() { var dialog = new ExceptionViewerStackTraceWithHyperlinks(Args.EnvironmentDotStackTrace); dialog.Show(); }
private void btnViewStackTrace_Click(object sender, EventArgs e) { var dialog = new ExceptionViewerStackTraceWithHyperlinks(Environment.StackTrace); dialog.Show(); }