コード例 #1
0
ファイル: StackFramesTree.cs プロジェクト: lulzzz/RDMP
        public static bool FindSourceCode(string frame)
        {
            string filenameMatch;
            int    lineNumberMatch;
            string method;

            return(ExceptionViewerStackTraceWithHyperlinks.MatchStackLine(frame, out filenameMatch, out lineNumberMatch, out method));
        }
コード例 #2
0
ファイル: StackFramesTree.cs プロジェクト: lulzzz/RDMP
        public static string GetMethodName(string frame)
        {
            string filenameMatch;
            int    lineNumberMatch;
            string method;

            ExceptionViewerStackTraceWithHyperlinks.MatchStackLine(frame, out filenameMatch, out lineNumberMatch, out method);

            return(method);
        }
コード例 #3
0
ファイル: ExceptionViewer.cs プロジェクト: lulzzz/RDMP
 protected override void OnViewStackTrace()
 {
     if (ExceptionViewerStackTraceWithHyperlinks.IsSourceCodeAvailable(_exception))
     {
         ExceptionViewerStackTraceWithHyperlinks.Show(_exception);
     }
     else
     {
         base.OnViewStackTrace();
     }
 }
コード例 #4
0
ファイル: StackFramesTree.cs プロジェクト: lulzzz/RDMP
        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);
        }
コード例 #5
0
        protected virtual void OnViewStackTrace()
        {
            var dialog = new ExceptionViewerStackTraceWithHyperlinks(Args.EnvironmentDotStackTrace);

            dialog.Show();
        }
コード例 #6
0
        private void btnViewStackTrace_Click(object sender, EventArgs e)
        {
            var dialog = new ExceptionViewerStackTraceWithHyperlinks(Environment.StackTrace);

            dialog.Show();
        }