阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js inspector session.post

      Node.js inspector session.post(method[, params][, callback])

      新增于: v8.0.0

      • method < string>
      • params < Object>
      • callback < Function>

      Posts a message to the inspector back-end. callback will be notified when a response is received. callback is a function that accepts two optional arguments - error and message-specific result.

      session.post('Runtime.evaluate', { expression: '2 + 2' },
                   (error, { result }) => console.log(result));
      // Output: { type: 'number', value: 4, description: '4' }
      

      The latest version of the V8 inspector protocol is published on the Chrome DevTools Protocol Viewer.

      Node.js inspector supports all the Chrome DevTools Protocol domains declared by V8. Chrome DevTools Protocol domain provides an interface for interacting with one of the runtime agents used to inspect the application state and listen to the run-time events.


      更多内容请参考:Node.js inspector 检查器,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录