事件:'inspectorNotification'


\Event: 'inspectorNotification'

新增于: v8.0.0
  • 类型:<Object> 通知消息对象

    \Type: <Object> The notification message object

当接收到来自 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:

AltStyle によって変換されたページ (->オリジナル) /