public void Init(IRuntimeDebuggingService debuggingService) { this.debuggingService = debuggingService; debuggingService.OnAsyncBreak += DebuggingService_OnAsyncBreak; debuggingService.OnBreakPoint += DebuggingService_OnBreakPoint; debuggingService.OnDebugEvent += DebuggingService_OnDebugEvent; debuggingService.OnEngineReady += DebuggingService_OnEngineReady; debuggingService.OnException += DebuggingService_OnException; debuggingService.OnScriptLoad += DebuggingService_OnScriptLoad; debuggingService.OnStepComplete += DebuggingService_OnStepComplete; debuggingService.StartDebug(); }
public void Init(IRuntimeDebuggingService debuggingService) { debuggingService.OnException += (sender, exception) => { Logger.LogCritical( $"Javascript side raise an uncaught exception.\n${JsonConvert.SerializeObject(exception)}\n"); }; debuggingService.OnAsyncBreak += (sender, point) => { }; debuggingService.OnBreakPoint += (sender, point) => { }; debuggingService.OnDebugEvent += (sender, arguments) => { }; debuggingService.OnEngineReady += (sender, args) => { }; debuggingService.OnScriptLoad += (sender, code) => { }; debuggingService.OnStepComplete += (sender, point) => { }; debuggingService.StartDebug(); }