How to debug chrome devtools panel extension?

▼魔方 西西 提交于 2019-11-26 16:05:12

问题


I am trying to write Chrome DevTools extension, but I am having some troubles to debug it.

How can I inspect my panel html and debug it's javascript?


回答1:


If you detach the Dev Tools (icon next to x in the top right corner) in a separate window, and press Ctrl+Shift+I while Dev Tools window is focused, you will invoke the Dev Tools for the Dev Tools window.

As far as I am aware, it's not possible for a docked configuration.




回答2:


To me it works with detaching the DevTools and hit CTRL+SHIFT+i (Windows).



来源:https://stackoverflow.com/questions/27661243/how-to-debug-chrome-devtools-panel-extension

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