事件:'inspectorNotification'


🌐 Event: 'inspectorNotification'

当接收到来自 V8 检查器的任何通知时触发。

🌐 Emitted when any notification from the V8 Inspector is received.

session.on('inspectorNotification', (message) => console.log(message.method));
// Debugger.paused
// Debugger.resumed 

也可以只订阅特定方法的通知:

🌐 It is also possible to subscribe only to notifications with specific method: