/// <summary> /// Returns the stack trace for the currently active context. |frameLimit| is /// the maximum number of frames that will be captured. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_v8_capi.h">cef/include/capi/cef_v8_capi.h</see>. /// </remarks> public static CfrV8StackTrace GetCurrent(int frameLimit) { var call = new CfxV8StackTraceGetCurrentRemoteCall(); call.frameLimit = frameLimit; call.RequestExecution(); return(CfrV8StackTrace.Wrap(new RemotePtr(call.__retval))); }
/// <summary> /// Returns the stack trace for the currently active context. |frameLimit| is /// the maximum number of frames that will be captured. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_v8_capi.h">cef/include/capi/cef_v8_capi.h</see>. /// </remarks> public static CfrV8StackTrace GetCurrent(int frameLimit) { var connection = CfxRemoteCallContext.CurrentContext.connection; var call = new CfxV8StackTraceGetCurrentRemoteCall(); call.frameLimit = frameLimit; call.RequestExecution(connection); return(CfrV8StackTrace.Wrap(new RemotePtr(connection, call.__retval))); }