GetManagedStackTrace() private method

private GetManagedStackTrace ( int instructionIndex ) : UnityEditor.StackFrame[]
instructionIndex int
return UnityEditor.StackFrame[]
Example #1
0
 internal override void OnSelectedInstructionChanged(int index)
 {
     this.m_ListViewState.row = index;
     if (this.m_ListViewState.row >= 0)
     {
         if (this.m_Instruction == null)
         {
             this.m_Instruction = new StyleDrawInspectView.GUIInstruction();
         }
         if (this.m_CachedinstructionInfo == null)
         {
             this.m_CachedinstructionInfo = new StyleDrawInspectView.CachedInstructionInfo();
         }
         this.m_Instruction.rect           = GUIViewDebuggerHelper.GetRectFromInstruction(this.m_ListViewState.row);
         this.m_Instruction.usedGUIStyle   = GUIViewDebuggerHelper.GetStyleFromInstruction(this.m_ListViewState.row);
         this.m_Instruction.usedGUIContent = GUIViewDebuggerHelper.GetContentFromInstruction(this.m_ListViewState.row);
         this.m_Instruction.stackframes    = GUIViewDebuggerHelper.GetManagedStackTrace(this.m_ListViewState.row);
         this.m_CachedinstructionInfo.styleContainer.inspectedStyle  = this.m_Instruction.usedGUIStyle;
         this.m_CachedinstructionInfo.styleContainerSerializedObject = null;
         this.m_CachedinstructionInfo.styleSerializedProperty        = null;
         this.GetSelectedStyleProperty(out this.m_CachedinstructionInfo.styleContainerSerializedObject, out this.m_CachedinstructionInfo.styleSerializedProperty);
         this.m_GuiViewDebuggerWindow.HighlightInstruction(this.m_GuiViewDebuggerWindow.m_Inspected, this.m_Instruction.rect, this.m_Instruction.usedGUIStyle);
     }
     else
     {
         this.m_Instruction           = null;
         this.m_CachedinstructionInfo = null;
         if (this.m_GuiViewDebuggerWindow.InstructionOverlayWindow != null)
         {
             this.m_GuiViewDebuggerWindow.InstructionOverlayWindow.Close();
         }
     }
 }
Example #2
0
        internal override string GetInstructionListName(int index)
        {
            StackFrame[] managedStackTrace   = GUIViewDebuggerHelper.GetManagedStackTrace(index);
            string       instructionListName = this.GetInstructionListName(managedStackTrace);

            return(string.Format("{0}. {1}", index, instructionListName));
        }
        private string GetInstructionName(ListViewElement el)
        {
            int    row = el.row;
            string instructionListName = this.GetInstructionListName(GUIViewDebuggerHelper.GetManagedStackTrace(row));

            return(string.Format("{0}. {1}", (object)row, (object)instructionListName));
        }
 private void OnSelectedInstructionChanged()
 {
     if (this.m_ListViewState.row >= 0)
     {
         if (this.m_Instruction == null)
         {
             this.m_Instruction = new GUIViewDebuggerWindow.GUIInstruction();
         }
         if (this.m_CachedinstructionInfo == null)
         {
             this.m_CachedinstructionInfo = new GUIViewDebuggerWindow.CachedInstructionInfo();
         }
         this.m_Instruction.rect           = GUIViewDebuggerHelper.GetRectFromInstruction(this.m_ListViewState.row);
         this.m_Instruction.usedGUIStyle   = GUIViewDebuggerHelper.GetStyleFromInstruction(this.m_ListViewState.row);
         this.m_Instruction.usedGUIContent = GUIViewDebuggerHelper.GetContentFromInstruction(this.m_ListViewState.row);
         this.m_Instruction.stackframes    = GUIViewDebuggerHelper.GetManagedStackTrace(this.m_ListViewState.row);
         this.m_CachedinstructionInfo.styleContainer.inspectedStyle  = this.m_Instruction.usedGUIStyle;
         this.m_CachedinstructionInfo.styleContainerSerializedObject = (SerializedObject)null;
         this.m_CachedinstructionInfo.styleSerializedProperty        = (SerializedProperty)null;
         this.GetSelectedStyleProperty(out this.m_CachedinstructionInfo.styleContainerSerializedObject, out this.m_CachedinstructionInfo.styleSerializedProperty);
         this.HighlightInstruction(this.m_Inspected, this.m_Instruction.rect, this.m_Instruction.usedGUIStyle);
     }
     else
     {
         this.m_Instruction           = (GUIViewDebuggerWindow.GUIInstruction)null;
         this.m_CachedinstructionInfo = (GUIViewDebuggerWindow.CachedInstructionInfo)null;
         if (!((UnityEngine.Object) this.m_InstructionOverlayWindow != (UnityEngine.Object)null))
         {
             return;
         }
         this.m_InstructionOverlayWindow.Close();
     }
 }
        internal override string GetInstructionListName(int index)
        {
            StackFrame[] managedStackTrace   = GUIViewDebuggerHelper.GetManagedStackTrace(index);
            string       instructionListName = this.GetInstructionListName(managedStackTrace);

            return($"{index}. {instructionListName}");
        }
Example #6
0
        private void ShowInstructionInExternalEditor(int row)
        {
            StackFrame[] managedStackTrace     = GUIViewDebuggerHelper.GetManagedStackTrace(row);
            int          interestingFrameIndex = this.GetInterestingFrameIndex(managedStackTrace);
            StackFrame   frame = managedStackTrace[interestingFrameIndex];

            InternalEditorUtility.OpenFileAtLineExternal(frame.sourceFile, (int)frame.lineNumber);
        }
Example #7
0
        private string GetInstructionName(ListViewElement el)
        {
            int row = el.row;

            StackFrame[] managedStackTrace   = GUIViewDebuggerHelper.GetManagedStackTrace(row);
            string       instructionListName = this.GetInstructionListName(managedStackTrace);

            return(string.Format("{0}. {1}", row, instructionListName));
        }
Example #8
0
 internal override void OnDoubleClickInstruction(int index)
 {
     this.ShowInstructionInExternalEditor(GUIViewDebuggerHelper.GetManagedStackTrace(index));
 }