Share via


DkmExceptionDetails.GetRethrownCallStack Method

Definition

Gets the text of where an exception was thrown, similar to StackTrace property of a .NET Exception. This API is used by the Visual Studio exception UI. This will return an empty string in scenarios where the implementation doesn't want a call stack to be displayed, such as if all of the frames are already present in the call stack window.

This API was introduced in Visual Studio 16 Update 4 (DkmApiVersion.VS16Update4).

public:
 System::String ^ GetRethrownCallStack(bool AddFormatting, Microsoft::VisualStudio::Debugger::Evaluation::DkmVariableInfoFlags ArgumentFlags, Microsoft::VisualStudio::Debugger::CallStack::DkmCallStackFilterOptions FilterOptions, [Runtime::InteropServices::Out] cli::array <Microsoft::VisualStudio::Debugger::DkmInstructionAddress ^> ^ % Address);
public string GetRethrownCallStack (bool AddFormatting, Microsoft.VisualStudio.Debugger.Evaluation.DkmVariableInfoFlags ArgumentFlags, Microsoft.VisualStudio.Debugger.CallStack.DkmCallStackFilterOptions FilterOptions, out Microsoft.VisualStudio.Debugger.DkmInstructionAddress[] Address);
member this.GetRethrownCallStack : bool * Microsoft.VisualStudio.Debugger.Evaluation.DkmVariableInfoFlags * Microsoft.VisualStudio.Debugger.CallStack.DkmCallStackFilterOptions * DkmInstructionAddress[] -> string
Public Function GetRethrownCallStack (AddFormatting As Boolean, ArgumentFlags As DkmVariableInfoFlags, FilterOptions As DkmCallStackFilterOptions, ByRef Address As DkmInstructionAddress()) As String

Parameters

AddFormatting
Boolean

[In] Specifies whether the call stack is formatted to contain bold/italic/hyperlinked text or not.

ArgumentFlags
DkmVariableInfoFlags

[In] Flags to indicate what information about the arguments should be included when formulating the call stack.

FilterOptions
DkmCallStackFilterOptions

[In] Flags to indicate what filters should be considered when formulating the call stack.

Address
DkmInstructionAddress[]

[Out] The instruction addresses referenced using 'navigate-to-context' links in formatted stack. Example: 'insert-description-here' would indicate the first instruction address should be used.

Returns

[Out] The call stack as a string. This will be formatted in markdown if AddFormatting is true. This will be empty if the call stack should not be displayed.

Applies to