C# Класс Microsoft.Scripting.Debugging.CompilerServices.DebugContext

Provides services to compilers for instrumenting code with tracebacks.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateFrameForGenerator DebugFrame
CreateFunctionInfo FunctionInfo
CreateInstance DebugContext
DebugContext System
DispatchDebugEvent void
GetCurrentThread DebugThread
GetDebugSourceFile DebugSourceFile
Lookup DebugSourceFile

Открытые методы

Метод Описание
CreateInstance ( ) : DebugContext

Creates a new instance of DebugContext

ResetSourceFile ( string sourceFileName ) : void

Resets a state associated with a source file that's maintained in the DebugContext

TransformLambda ( System.Linq.Expressions lambda ) : LambdaExpression

Transforms a LambdaExpression to a debuggable LambdaExpression

TransformLambda ( System.Linq.Expressions lambda, DebugLambdaInfo lambdaInfo ) : LambdaExpression

Transforms a LambdaExpression to a debuggable LambdaExpression

Приватные методы

Метод Описание
CreateFrameForGenerator ( FunctionInfo func ) : DebugFrame
CreateFunctionInfo ( Delegate generatorFactory, string name, DebugSourceSpan locationSpanMap, IList scopedVariables, IList variables, object customPayload ) : FunctionInfo
CreateInstance ( IDebugThreadFactory runtimeThreadFactory ) : DebugContext
DebugContext ( IDebugThreadFactory runtimeThreadFactory ) : System
DispatchDebugEvent ( DebugThread thread, int debugMarker, TraceEventKind eventKind, object payload ) : void
GetCurrentThread ( ) : DebugThread
GetDebugSourceFile ( string sourceFile ) : DebugSourceFile
Lookup ( string sourceFile ) : DebugSourceFile

Описание методов

CreateInstance() публичный статический Метод

Creates a new instance of DebugContext
public static CreateInstance ( ) : DebugContext
Результат DebugContext

ResetSourceFile() публичный Метод

Resets a state associated with a source file that's maintained in the DebugContext
public ResetSourceFile ( string sourceFileName ) : void
sourceFileName string
Результат void

TransformLambda() публичный Метод

Transforms a LambdaExpression to a debuggable LambdaExpression
public TransformLambda ( System.Linq.Expressions lambda ) : LambdaExpression
lambda System.Linq.Expressions
Результат System.Linq.Expressions.LambdaExpression

TransformLambda() публичный Метод

Transforms a LambdaExpression to a debuggable LambdaExpression
public TransformLambda ( System.Linq.Expressions lambda, DebugLambdaInfo lambdaInfo ) : LambdaExpression
lambda System.Linq.Expressions
lambdaInfo DebugLambdaInfo
Результат System.Linq.Expressions.LambdaExpression