TracingJSRuntime class
Wraps a JSRuntime
and traces all the calls from .NET to JS, including basic inspection of arguments, out values, and return status.
C#
public class TracingJSRuntime : JSRuntime
Public Members
Examples
Produces output similar to:
C#
< CreateObject()
> CreateObject(000001E984E19BB0 object)
< DefineProperties(000001E984E19BB0 object, [hello(), toString()])
> DefineProperties(ok)
< Wrap(000001E984E19BB0 object, 0x000001E984CE4580 RuntimeType)
> Wrap(@000001E9808E7840 000001E984E19BF0 object)
< DefineProperties(000001E984E19B80 object, [Example])
> DefineProperties(ok)
< GetValueType(000001E984E19B80 object)
> GetValueType(object)
< GetInstanceData()
> GetInstanceData(0x000001E984CE1300 JSRuntimeContext)
< GetCallbackInfo(0000000CB8DFE560)
> GetCallbackInfo(1, 0x000001E984CE4590 JSPropertyDescriptor)
< GetCallbackArgs(0000000CB8DFE560, [1])
> GetCallbackArgs(0000000CB8DFE8C8 object, 0000000CB8DFE8D0 string ".NET")
See Also
- class JSRuntime
- namespace Microsoft.JavaScript.NodeApi.Runtime
- TracingJSRuntime.cs