diff --git a/resources/unpacked/devtools/front_end/dirac_lazy/dirac_lazy.js b/resources/unpacked/devtools/front_end/dirac_lazy/dirac_lazy.js index d0abd3ae6b..dc0ba9538d 100644 --- a/resources/unpacked/devtools/front_end/dirac_lazy/dirac_lazy.js +++ b/resources/unpacked/devtools/front_end/dirac_lazy/dirac_lazy.js @@ -140,14 +140,24 @@ Object.assign(window.dirac, (function() { const globalObjectClearedHandler = (...args) => { callback("GlobalObjectCleared", ...args); }; + const debuggerPausedHandler = (...args) => { + callback("DebuggerPaused", ...args); + }; + const debuggerResumedHandler = (...args) => { + callback("DebuggerResumed", ...args); + }; SDK.targetManager.addModelListener(SDK.DebuggerModel, SDK.DebuggerModel.Events.GlobalObjectCleared, globalObjectClearedHandler, window.dirac); + SDK.targetManager.addModelListener(SDK.DebuggerModel, SDK.DebuggerModel.Events.DebuggerPaused, debuggerPausedHandler, window.dirac); + SDK.targetManager.addModelListener(SDK.DebuggerModel, SDK.DebuggerModel.Events.DebuggerResumed, debuggerResumedHandler, window.dirac); /** * @return {boolean} */ debuggerEventsUnsubscriber = () => { SDK.targetManager.removeModelListener(SDK.DebuggerModel, SDK.DebuggerModel.Events.GlobalObjectCleared, globalObjectClearedHandler, window.dirac); + SDK.targetManager.removeModelListener(SDK.DebuggerModel, SDK.DebuggerModel.Events.DebuggerPaused, debuggerPausedHandler, window.dirac); + SDK.targetManager.removeModelListener(SDK.DebuggerModel, SDK.DebuggerModel.Events.DebuggerResumed, debuggerResumedHandler, window.dirac); return true; };