我在应用程序中使用AngularJS和角材料库.
问题是,每当控制器的任何功能发生任何错误时,它不会显示特定错误,而是每次都会显示相同的通用错误,通过查看哪些错误无法确定.
问题是,每当控制器的任何功能发生任何错误时,它不会显示特定错误,而是每次都会显示相同的通用错误,通过查看哪些错误无法确定.
这是我的控制台中显示的错误.
TypeError: href is null stackFrame.js (line 357) consoleLog/<() angular.js (line 12416) $ExceptionHandlerProvider/this.$get</<() angular.js (line 9203) processQueue() angular.js (line 14642) scheduleProcessQueue/<() angular.js (line 14650) $RootScopeProvider/this.$get</Scope.prototype.$eval() angular.js (line 15878) $RootScopeProvider/this.$get</Scope.prototype.$digest() angular.js (line 15689) $RootScopeProvider/this.$get</Scope.prototype.$apply() angular.js (line 15986) done() angular.js (line 10511) completeRequest() angular.js (line 10683) requestLoaded() angular.js (line 10624)
PS:我正在使用RequireJS JavaScript库来延迟加载我的应用程序.我也在我的应用程序中使用ui.router.
更新1:
stackFrame.js不是我的应用程序的JavaScript文件. stackFrame.js的位置是:
chrome://firebug/content/debugger/stack/stackFrame.js
并且在任何控制器的应用程序中,它总是在同一行显示相同的错误,即使我在应用程序中遇到不同的错误.
更新2:
禁用Firebug工程.它显示了Firefox和Chrome的控制台中的具体错误.
我想补充说,当$http.post()的响应函数内有错误时,Firebug会显示这种错误.测试其他案例.
更新3:
参考https://github.com/firebug/firebug/issues/7948,这个问题已经在firebug 2.0.13中解决了.
解决方法
这显然是Firebug中的一个bug.其代码中的相关行是这一个:
如果你想要修正,你应该是file a bug report for Firebug.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。