67 instantiations of StackTrace
csc (1)
src\Compilers\Shared\ExitingTraceListener.cs (1)
49var stackTrace = new StackTrace();
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\Tool.cs (1)
59StackTrace st = new StackTrace(true);
InMemory.FunctionalTests (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
221Leaser = new StackTrace(false);
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
30var stackTrace = new System.Diagnostics.StackTrace(exception, needFileInfo);
Microsoft.AspNetCore.Hosting (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
30var stackTrace = new System.Diagnostics.StackTrace(exception, needFileInfo);
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
221Leaser = new StackTrace(false);
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
221Leaser = new StackTrace(false);
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
30var stackTrace = new System.Diagnostics.StackTrace(exception, needFileInfo);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
221Leaser = new StackTrace(false);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
221Leaser = new StackTrace(false);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
221Leaser = new StackTrace(false);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
221Leaser = new StackTrace(false);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
221Leaser = new StackTrace(false);
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
30var stackTrace = new System.Diagnostics.StackTrace(exception, needFileInfo);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
Microsoft.CodeAnalysis (2)
InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Classification\SyntacticTaggerTests.cs (2)
60callstacks.Add(new StackTrace().ToString()); 114callstacks.Add(new StackTrace().ToString());
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptTests.cs (1)
1121var stackTrace = new StackTrace(ex, needFileInfo);
Microsoft.CodeAnalysis.EditorFeatures (2)
Tagging\AbstractAsynchronousTaggerProvider.cs (1)
143StackTrace = new StackTrace().ToString();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ReferenceCounting.cs (1)
71=> _stackTrace = new StackTrace().ToString();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.CodeAnalysis.LanguageServer (1)
Logging\RoslynLogger.cs (1)
189var frames = new StackTrace(exception).GetFrames();
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (2)
205var stackTrace = new StackTrace(exception); 234var frames = new StackTrace(exception).GetFrames();
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonObjectFormatter.cs (1)
77var trace = new StackTrace(e, fNeedFileInfo: true);
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.DotNet.RemoteExecutor (1)
RemoteExecutor.cs (1)
644IEnumerable<Assembly> assemblies = new StackTrace().GetFrames()
Microsoft.Extensions.Telemetry (1)
Logging\ExtendedLogger.cs (1)
175var trace = new StackTrace(exception, config.UseFileInfoForStackTraces).ToString();
Microsoft.ML.TestFramework (1)
BaseTestBaseline.cs (1)
244var stackTrace = new StackTrace(true);
Microsoft.VisualStudio.LanguageServices (3)
ErrorReporting\VisualStudioErrorReportingService.ExceptionFormatting.cs (1)
76var stackTrace = new StackTrace(exception);
Watson\FaultReporter.cs (2)
205var stackTrace = new StackTrace(exception); 234var frames = new StackTrace(exception).GetFrames();
PresentationCore (1)
MS\Internal\MediaTrace.cs (1)
96System.Diagnostics.StackTrace st = new System.Diagnostics.StackTrace(1);
PresentationFramework (3)
MS\Internal\Documents\DocumentsTrace.cs (1)
152System.Diagnostics.StackTrace st = new System.Diagnostics.StackTrace(1);
System\Windows\Documents\TextStore.cs (1)
151IMECompositionTracer.Mark(new System.Diagnostics.StackTrace(true));
System\Windows\Interop\HwndHost.cs (1)
998Trace.WriteLineIf(hwnd == null, $"- Warning - Notification Window is null\n{new System.Diagnostics.StackTrace(true).ToString()}");
Replay (1)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
System.Diagnostics.TraceSource (1)
System\Diagnostics\DefaultTraceListener.cs (1)
83stackTrace = new StackTrace(fNeedFileInfo: true).ToString();
System.Net.Quic (1)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (1)
17s_captureTrace ? new StackTrace(fNeedFileInfo: true) : null;
System.Net.Security (1)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (1)
17s_captureTrace ? new StackTrace(fNeedFileInfo: true) : null;
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (1)
624StackTrace stack = new StackTrace();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Debug.cs (1)
115stackTrace = new StackTrace(2, true).ToString(StackTrace.TraceFormat.Normal);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebugProvider.cs (1)
22stackTrace = new StackTrace(0, true).ToString(StackTrace.TraceFormat.Normal);
src\libraries\System.Private.CoreLib\src\System\Environment.cs (1)
231get => new StackTrace(true).ToString(Diagnostics.StackTrace.TraceFormat.Normal);
src\libraries\System.Private.CoreLib\src\System\Exception.cs (2)
232return new StackTrace(this, fNeedFileInfo: true).ToString(Diagnostics.StackTrace.TraceFormat.Normal); 247new StackTrace(fNeedFileInfo: true).ToString(Diagnostics.StackTrace.TraceFormat.TrailingNewLine, sb);
System.Private.Windows.Core (1)
System\DisposalTracking.cs (1)
49_originatingStack = _throwIfFinalized ? new StackTrace() : null;
System.Security.Cryptography (1)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (1)
17s_captureTrace ? new StackTrace(fNeedFileInfo: true) : null;
System.ServiceModel.Primitives (2)
Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (2)
132StackTrace stackTrace = new StackTrace(false); 168stackTrace = new StackTrace(frameCount, false);
System.Windows.Forms (1)
System\Windows\Forms\Controls\ImageList\ImageList.NativeImageList.cs (1)
14private readonly string _callStack = new StackTrace().ToString();
System.Windows.Forms.UI.IntegrationTests (1)
Infra\DataCollectionService.cs (1)
177exceptionDetails.AppendLine(new StackTrace(true).ToString());
UIAutomationClient (1)
MS\Internal\Automation\ProxyManager.cs (1)
349StackTrace st = new StackTrace();
vbc (1)
src\Compilers\Shared\ExitingTraceListener.cs (1)
49var stackTrace = new StackTrace();
VBCSCompiler (1)
src\Compilers\Shared\ExitingTraceListener.cs (1)
49var stackTrace = new StackTrace();
65 references to StackTrace
csc (1)
src\Compilers\Shared\ExitingTraceListener.cs (1)
49var stackTrace = new StackTrace();
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\Tool.cs (1)
59StackTrace st = new StackTrace(true);
InMemory.FunctionalTests (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
217public StackTrace? Leaser { get; set; }
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
30var stackTrace = new System.Diagnostics.StackTrace(exception, needFileInfo);
Microsoft.AspNetCore.Hosting (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
30var stackTrace = new System.Diagnostics.StackTrace(exception, needFileInfo);
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
217public StackTrace? Leaser { get; set; }
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
217public StackTrace? Leaser { get; set; }
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
30var stackTrace = new System.Diagnostics.StackTrace(exception, needFileInfo);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
217public StackTrace? Leaser { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
217public StackTrace? Leaser { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
217public StackTrace? Leaser { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
217public StackTrace? Leaser { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
217public StackTrace? Leaser { get; set; }
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
30var stackTrace = new System.Diagnostics.StackTrace(exception, needFileInfo);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
Microsoft.CodeAnalysis (2)
InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptTests.cs (1)
1121var stackTrace = new StackTrace(ex, needFileInfo);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (1)
205var stackTrace = new StackTrace(exception);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonObjectFormatter.cs (1)
77var trace = new StackTrace(e, fNeedFileInfo: true);
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
80var stackTrace = new StackTrace();
Microsoft.ML.TestFramework (1)
BaseTestBaseline.cs (1)
244var stackTrace = new StackTrace(true);
Microsoft.VisualStudio.LanguageServices (2)
ErrorReporting\VisualStudioErrorReportingService.ExceptionFormatting.cs (1)
76var stackTrace = new StackTrace(exception);
Watson\FaultReporter.cs (1)
205var stackTrace = new StackTrace(exception);
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
176[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.StackTrace))]
netstandard (1)
netstandard.cs (1)
678[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.StackTrace))]
PresentationCore (1)
MS\Internal\MediaTrace.cs (1)
96System.Diagnostics.StackTrace st = new System.Diagnostics.StackTrace(1);
PresentationFramework (1)
MS\Internal\Documents\DocumentsTrace.cs (1)
152System.Diagnostics.StackTrace st = new System.Diagnostics.StackTrace(1);
Replay (1)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
61var stackTrace = new StackTrace();
System.Diagnostics.StackTrace (1)
artifacts\obj\System.Diagnostics.StackTrace\Debug\net10.0\System.Diagnostics.StackTrace.Forwards.cs (1)
6[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.StackTrace))]
System.Net.Quic (1)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (1)
16private readonly StackTrace? _stacktrace =
System.Net.Security (1)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (1)
16private readonly StackTrace? _stacktrace =
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (1)
624StackTrace stack = new StackTrace();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Debug.cs (1)
115stackTrace = new StackTrace(2, true).ToString(StackTrace.TraceFormat.Normal);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebugProvider.cs (1)
22stackTrace = new StackTrace(0, true).ToString(StackTrace.TraceFormat.Normal);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DiagnosticMethodInfo.cs (2)
54if (!StackTrace.IsSupported) 73if (!StackTrace.IsSupported)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackFrame.cs (6)
66BuildStackFrame(StackTrace.METHODS_TO_SKIP, false); 76BuildStackFrame(StackTrace.METHODS_TO_SKIP, needFileInfo); 86BuildStackFrame(skipFrames + StackTrace.METHODS_TO_SKIP, false); 96BuildStackFrame(skipFrames + StackTrace.METHODS_TO_SKIP, needFileInfo); 109BuildStackFrame(StackTrace.METHODS_TO_SKIP, false); 124BuildStackFrame(StackTrace.METHODS_TO_SKIP, false);
src\libraries\System.Private.CoreLib\src\System\Environment.cs (1)
231get => new StackTrace(true).ToString(Diagnostics.StackTrace.TraceFormat.Normal);
src\libraries\System.Private.CoreLib\src\System\Exception.cs (2)
232return new StackTrace(this, fNeedFileInfo: true).ToString(Diagnostics.StackTrace.TraceFormat.Normal); 247new StackTrace(fNeedFileInfo: true).ToString(Diagnostics.StackTrace.TraceFormat.TrailingNewLine, sb);
src\System\Diagnostics\StackFrame.CoreCLR.cs (1)
39skipFrames += StackTrace.CalculateFramesToSkip(StackF, iNumOfFrames);
src\System\Diagnostics\StackFrameHelper.cs (1)
88StackTrace.GetStackFramesInternal(this, fNeedFileInfo, exception);
System.Private.Windows.Core (1)
System\DisposalTracking.cs (1)
43private readonly StackTrace? _originatingStack;
System.Security.Cryptography (1)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (1)
16private readonly StackTrace? _stacktrace =
System.ServiceModel.Primitives (1)
Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
132StackTrace stackTrace = new StackTrace(false);
UIAutomationClient (1)
MS\Internal\Automation\ProxyManager.cs (1)
349StackTrace st = new StackTrace();
vbc (1)
src\Compilers\Shared\ExitingTraceListener.cs (1)
49var stackTrace = new StackTrace();
VBCSCompiler (1)
src\Compilers\Shared\ExitingTraceListener.cs (1)
49var stackTrace = new StackTrace();