事件:'inspectorNotification'
【Event: 'inspectorNotification'】
- <Object> 通知消息对象
当接收到来自 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:】