C# Class Microsoft.R.StackTracing.RSessionExtensions

Afficher le fichier Open project: Microsoft/RTVS

Méthodes publiques

Méthode Description
TracebackAsync ( this session, bool skipSourceFrames = true, CancellationToken cancellationToken = default(CancellationToken) ) : Task>

Retrieve the current call stack, in call order (i.e. the current active frame is last, the one that called it is second to last etc).

This method has snapshot semantics for the frames and their properties - that is, the returned collection is not going to change as code runs. However, calling various methods on the returned IRStackFrame objects, such as RStackFrameExtensions.DescribeChildrenAsync, will fetch fresh data, possibly from altogether different frames if the call stack has changed. Thus, it is inadvisable to retain the returned stack and use it at a later point - it should always be obtained anew at the point where it is used.

Method Details

TracebackAsync() public static méthode

Retrieve the current call stack, in call order (i.e. the current active frame is last, the one that called it is second to last etc).
This method has snapshot semantics for the frames and their properties - that is, the returned collection is not going to change as code runs. However, calling various methods on the returned IRStackFrame objects, such as RStackFrameExtensions.DescribeChildrenAsync, will fetch fresh data, possibly from altogether different frames if the call stack has changed. Thus, it is inadvisable to retain the returned stack and use it at a later point - it should always be obtained anew at the point where it is used.
public static TracebackAsync ( this session, bool skipSourceFrames = true, CancellationToken cancellationToken = default(CancellationToken) ) : Task>
session this
skipSourceFrames bool /// If , excludes frames that belong to source() or rtvs:::debug_source() internal machinery at the bottom of the stack; /// the first reported frame will be the one with sourced code. ///
cancellationToken System.Threading.CancellationToken
Résultat Task>