Debugging new Chrome packaged apps

好久不见. 提交于 2019-12-03 05:03:39

I've been able to right click the content area and inspect an element to get the dev tools to come up.

go to here

chrome://inspect/

find the page you want

Starting on Chrome 24, you can right click and inspect your page or inspect the background page.

If your app doesn't have any open window to right click, you can go to chrome://extensions and use the Inspect Views links, from where you can open Developer Tools for any of your app pages, including those in the background.

Before Chrome 24, the only difference is that the background page could only be inspected using the chrome://extensions link, there was no "Inspect background page" in the right click menu.

UPDATE: If you want to debug an app installed from the Chrome Web Store, you need to enable the flag "Enable debugging for packed apps" in the chrome:flags page:

After that, right click will work on any app.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!