How to inspect Canvas Frames

后端 未结 2 1129
清歌不尽
清歌不尽 2020-12-16 23:54

I just saw this link, about how to inspect \"Canvas frames\" on Chrome Dev Tools, but how to do it on Chrome extensions?

I think that the chrome.debugger.sendC

2条回答
  •  失恋的感觉
    2020-12-17 00:58

    EDIT: As shown in RobW's answer, required functionality was removed from Chrome.

    The relevant documentation is at tip-of-the-tree debugging protocol docs.

    Specifically, this is done via the LayerTree domain. Do note: since it's not in an officially supported version of the debugger protocol, it's subject to change without notice.

    The flow with the API presumably would be to attach to the page, send a command to enable profiling and then listen for appropriate events.

    You can see a sample of how Debugger works, and try to figure it out from the docs or sniff the actual protocol by remote-debugging a Dev Tools page's WebSocket traffic.

提交回复
热议问题