Shows the callstack as multiline text output to help figure out who called what. Removes the
first callstack line (this method) and all non-helpful System, NUnit and nCrunch lines.
View code on GitHub Namespace: DeltaEngine.ExtensionsAssembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
public static string FormatStackTraceIntoClickableMultilineText(
int stackFramesToSkip = 0
)
public static string FormatStackTraceIntoClickableMultilineText(
int stackFramesToSkip = 0
)
Public Shared Function FormatStackTraceIntoClickableMultilineText (
Optional stackFramesToSkip As Integer = 0
) As String
Public Shared Function FormatStackTraceIntoClickableMultilineText (
Optional stackFramesToSkip As Integer = 0
) As String
public:
static String^ FormatStackTraceIntoClickableMultilineText(
int stackFramesToSkip = 0
)
public:
static String^ FormatStackTraceIntoClickableMultilineText(
int stackFramesToSkip = 0
)
static member FormatStackTraceIntoClickableMultilineText :
?stackFramesToSkip : int
(* Defaults:
let _stackFramesToSkip = defaultArg stackFramesToSkip 0
*)
-> string
static member FormatStackTraceIntoClickableMultilineText :
?stackFramesToSkip : int
(* Defaults:
let _stackFramesToSkip = defaultArg stackFramesToSkip 0
*)
-> string
Return Value
Type:
StringTests:
DeltaEngine.Tests.Extensions.StackTraceExtensionsTests1 unit tests call DeltaEngine.Extensions.StackTraceExtensions.FormatStackTraceIntoClickableMultilineText(System.Int32)
[Test, Ignore]
public void FormatStackTraceIntoClickableMultilineText()
{
Console.WriteLine(StackTraceExtensions.FormatStackTraceIntoClickableMultilineText());
}
[Test, Ignore]
public void FormatStackTraceIntoClickableMultilineText()
{
// This will output text into the NCrunch output window, which is needed to test this feature
Console.WriteLine(StackTraceExtensions.FormatStackTraceIntoClickableMultilineText());
}