在Firefox扩展调试AngularJS Web应用程序 [英] Debugging AngularJS web app in Firefox extensions
问题描述
我创建加载一个iframe Firefox扩展。该iframe装载使用AngularJS构建的Web应用程序。反正是有检查是怎么回事?该应用程序加载,但我有我无法输入2输入框。
I have created a Firefox extension that loads an iframe. That iframe loads a web application built using AngularJS. Is there anyway to inspect what is going on? The application loads but I have 2 input boxes that I am unable to type in.
我已经开发了两个XUL的延伸和使用的Add-On SDK和他们都不允许我与输入框进行交互。我还注意到,当我删除NG-模型的属性,交互工作。好像数据绑定是一个问题。
I've developed the extension in both XUL and using the Add-On SDK and both of them don't allow me to interact with the input box. I've further noticed that when I remove the ng-model attributes, interaction works. It seems like data binding is an issue.
任何想法?
谢谢
Any ideas? Thanks
推荐答案
在没有看到code,这是很难说什么错。如果我遇到了这个问题(我碰到类似的),我大致回落到编辑角源,并添加转储(或执行console.log)语句,试图追查这是怎么回事。这是pretty可怕,但它通常能够完成任务。
Without seeing the code, it's hard to say what's going wrong. If I were running into this problem (and I've run into similar ones), I generally fall back to editing the Angular source, and adding dump (or console.log) statements to try and trace what's going on. It's pretty terrible, but it usually gets the job done.
祝你好运!
这篇关于在Firefox扩展调试AngularJS Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!