事件:'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 

警告 不建议在同线程会话中使用断点,请参阅[断点支持][断点支持]。

¥Breakpoints with same-thread session is not recommended, see support of breakpoints.

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

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