[英]Quickest way to debug Chrome Extension popup scripts
I have the Chrome Apps and Extensions developer tool installed to debug my Chrome Extension. 我已安装Chrome应用和扩展程序开发人员工具来调试我的Chrome扩展程序。 However, to debug the popup script running in the popup window, you have to perform the following steps:
但是,要调试在弹出窗口中运行的弹出脚本,您必须执行以下步骤:
The real annoying part about this is the popup window has to be re-opened every time a change happens. 真正令人讨厌的部分是每次发生更改时都必须重新打开弹出窗口。 Debugging background scripts I don't have as much of a problem with, because the background script debug page stays open after you refresh the chrome extension.
调试后台脚本我没有什么问题,因为刷新chrome扩展程序后,后台脚本调试页面保持打开状态。 But for popup scripts, the popup window along with the popup debug page keeps closing and it becomes a really tedious, repetitive task to re-open it when debugging a lot.
但是对于弹出脚本,弹出窗口以及弹出调试页面会一直关闭,并且在进行大量调试时重新打开它是一项非常繁琐且重复的任务。 Is there no other way to more easily start debugging Chrome Extensions popup scripts?
有没有其他方法可以更轻松地开始调试Chrome扩展程序弹出脚本?
As i understood you have a pop up while tapping the icon in the URL bar 据我了解,您在点击网址栏中的图标时会弹出一个窗口
In order to debug you can use weinre remote debugger ,Which may solve your problem 为了进行调试,您可以使用weinre远程调试器,这可以解决您的问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.