/// <summary>
        /// Assign source code to Backtrace report - text available in the right panel in web debugger.
        /// </summary>
        /// <param name="text"></param>
        internal void AssignSourceCodeToReport(string text)
        {
            if (DiagnosticStack == null || DiagnosticStack.Count == 0)
            {
                return;
            }

            SourceCode = new BacktraceSourceCode()
            {
                Text = text
            };
            // assign log information to first stack frame
            DiagnosticStack[0].SourceCode = BacktraceSourceCode.SOURCE_CODE_PROPERTY;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Assign source code to Backtrace report - text available in the right panel in web debugger.
        /// </summary>
        /// <param name="text"></param>
        internal void AssignSourceCodeToReport(string text)
        {
            if (DiagnosticStack == null || !DiagnosticStack.Any())
            {
                return;
            }

            SourceCode = new BacktraceSourceCode()
            {
                Text = text
            };
            // assign log information to first stack frame
            DiagnosticStack.First().SourceCode = SourceCode.Id.ToString();
        }