Example #1
0
        void OnLogDoubleClick()
        {
            int    lineNumber = 0;
            string fileName   = StackTraceExtractor.GetFirstPath(selected.stackTrace, out lineNumber);

            if (fileName == null)
            {
                fileName = StackTraceExtractor.GetFileAndLineFromError(selected.message, out lineNumber);
            }

            EditorTools.OpenScript(fileName, lineNumber);
        }
Example #2
0
        void DrawStackView()
        {
            stackViewScrollPosition = EditorGUILayout.BeginScrollView(stackViewScrollPosition, GUILayout.Width(stackViewWidth));

            if (selected == null)
            {
                var style = EditorStyles.helpBox;
                style.normal.textColor = Color.black;
                GUILayout.Label("Select a log to show stack trace", style);
                EditorGUILayout.EndScrollView();
                return;
            }

            var items = StackTraceExtractor.ExtractStackTraceItems(selected.stackTrace);

            foreach (var item in items)
            {
                DrawStackTraceItem(item);
            }

            EditorGUILayout.EndScrollView();
        }