IDkmExceptionDetailsProvider164.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.

public:
 System::String ^ GetRethrownCallStack(Microsoft::VisualStudio::Debugger::Exceptions::DkmExceptionDetails ^ exceptionDetails, 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 (Microsoft.VisualStudio.Debugger.Exceptions.DkmExceptionDetails exceptionDetails, bool addFormatting, Microsoft.VisualStudio.Debugger.Evaluation.DkmVariableInfoFlags argumentFlags, Microsoft.VisualStudio.Debugger.CallStack.DkmCallStackFilterOptions filterOptions, out Microsoft.VisualStudio.Debugger.DkmInstructionAddress[] address);
public string GetRethrownCallStack (Microsoft.VisualStudio.Debugger.Exceptions.DkmExceptionDetails exceptionDetails, bool addFormatting, Microsoft.VisualStudio.Debugger.Evaluation.DkmVariableInfoFlags argumentFlags, Microsoft.VisualStudio.Debugger.CallStack.DkmCallStackFilterOptions filterOptions, out Microsoft.VisualStudio.Debugger.DkmInstructionAddress[]? address);
abstract member GetRethrownCallStack : Microsoft.VisualStudio.Debugger.Exceptions.DkmExceptionDetails * bool * Microsoft.VisualStudio.Debugger.Evaluation.DkmVariableInfoFlags * Microsoft.VisualStudio.Debugger.CallStack.DkmCallStackFilterOptions * DkmInstructionAddress[] -> string
Public Function GetRethrownCallStack (exceptionDetails As DkmExceptionDetails, addFormatting As Boolean, argumentFlags As DkmVariableInfoFlags, filterOptions As DkmCallStackFilterOptions, ByRef address As DkmInstructionAddress()) As String

Parameters

exceptionDetails
DkmExceptionDetails

[In] Contains details about an exception or inner exception object.

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