简体   繁体   English

镀铬帆布检查员 2015

[英]chrome canvas inspector 2015

I used this nifty feature that chrome had for quite a while called "canvas inspector".我使用了 chrome 有一段时间称为“画布检查器”的漂亮功能。 It was an experimental dev feature that had to manually be enabled.这是一项必须手动启用的实验性开发功能。

It was quite helpful when working with webgl via something like THREE.js where you can easily create a bunch of undesired draw calls by accident.在通过 THREE.js 之类的东西使用 webgl 时,它非常有用,您可以在其中轻松创建一堆不想要的绘制调用。

Also, it worked on any website, you could simply take a snapshot and see whats going on in the canvas.此外,它适用于任何网站,您可以简单地拍摄快照并查看画布中发生了什么。

It... miraculously disappeared one day, and google does not give any insight.它......有一天奇迹般地消失了,谷歌没有给出任何见解。

I've tried some extensions but they dont feel nearly as good, or i couldn't even get them to work.我尝试了一些扩展,但它们感觉几乎没有那么好,或者我什至无法让它们工作。 Is there another way to get this back into chrome?有没有另一种方法可以将其恢复到 chrome 中?

Apparently it was doing some cheeky stuff that they didn't want in the main project so it was removed in this issue: DevTools: make Canvas profiler an extension显然它在主项目中做了一些他们不想要的厚颜无耻的事情,所以在这个问题中被删除了: DevTools: make Canvas profiler an extension

We can make it an extension though.不过,我们可以将其作为扩展。 This bug is for tracking removal of the canvas profiler from the DevTools.此错误用于跟踪从 DevTools 中删除画布分析器。 There will be a separate initiative of porting the code being removed into github and publishing it as a Chrome extension.将有一个单独的计划将被删除的代码移植到 github 并将其作为 Chrome 扩展发布。

According to that issue they might move it to an extension in the future but I haven't found any traces of it as of now.根据那个问题,他们将来可能会将其移至扩展程序,但到目前为止我还没有发现任何痕迹。 They haven't responded to a question in the above issue about where the new issue could be tracked.他们还没有回答上述问题中有关可以在何处跟踪新问题的问题。

Chrome and Firefox have both removed their Canvas inspectors... Chrome 和 Firefox 都删除了他们的 Canvas 检查器......

Original Answer:原答案:
This is not exactly what the question asks for, but Firefox has a canvas inspector integrated: https://hacks.mozilla.org/2014/03/introducing-the-canvas-debugger-in-firefox-developer-tools/这并不是问题所要求的,但 Firefox 集成了一个画布检查器: https : //hacks.mozilla.org/2014/03/introducing-the-canvas-debugger-in-firefox-developer-tools/

You can enable it in the settings of the normal inspector您可以在普通检查器的设置中启用它

EDIT: (2019)编辑:(2019)
The Canvas Inspector has been removed as of Firefox 67 :Firefox 67开始,Canvas Inspector 已被删除:
Mozilla deprecated listing Mozilla 已弃用列表
Bug report with reasoning带推理的错误报告

Alternative:选择:
spector.js - Recommended alternative by Mozilla spector.js - Mozilla 推荐的替代方案

Canvas inspection was just removed!画布检查刚刚删除!

You can download an old version of Chromium here like Chromium_OSX_43.0.2357.81.dmg .您可以在此处下载旧版本的 Chromium,例如Chromium_OSX_43.0.2357.81.dmg (Provided by freesmug ) (由freesmug提供)

Happy Canvas Inspection!快乐帆布检查!

This is the best extension inspector I've seen so far.这是迄今为止我见过的最好的扩展检查器。

https://spector.babylonjs.com https://spector.babylonjs.com

First go into首先进入

chrome://flags

Then enable然后启用

Developer Tools experiments

Then after restarting your browser, open the devlopers tools by hitting f12, then in the top right corner is a gear.然后在重新启动浏览器后,按 f12 打开 devlopers 工具,然后在右上角是一个齿轮。 Click on it, go to experiments, then find "canvas inspection".点击它,进入实验,然后找到“画布检查”。 It's unstable, but usable.它不稳定,但可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM