Access debugging in add-ons - Firefox Developer Tools 编辑
We are planning to deprecate the use by Firefox add-ons of the techniques described in this document. Don't write new add-ons that use these techniques.
The following items are accessible in the context of chrome://browser/content/debugger.xul (or, in version 23 beta, chrome://browser/content/devtools/debugger.xul):
- window.addEventListener("Debugger:EditorLoaded") - called when the read-only script panel loaded.
- window.addEventListener("Debugger:EditorUnloaded")
Relevant files:
- chrome://browser/content/devtools/debugger-controller.js
- chrome://browser/content/devtools/debugger-toolbar.js
- chrome://browser/content/devtools/debugger-view.js
- chrome://browser/content/devtools/debugger-panes.js
Unfortunately there is not yet any API to evaluate watches/expressions within the debugged scope, or highlight elements on the page that are referenced as variables in the debugged scope. (currently a work in progress, see bug 653545.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论