我在应用程序中使用AngularJS和角材料库.
问题是,每当控制器的任何功能发生任何错误时,它不会显示特定错误,而是每次都会显示相同的通用错误,通过查看哪些错误无法确定. @H_301_3@这是我的控制台中显示的错误.
@H_301_3@PS:我正在使用RequireJS JavaScript库来延迟加载我的应用程序.我也在我的应用程序中使用ui.router. @H_301_3@更新1:
stackFrame.js不是我的应用程序的JavaScript文件. stackFrame.js的位置是:
我想补充说,当$http.post()的响应函数内有错误时,Firebug会显示这种错误.测试其他案例. @H_301_3@更新3: @H_301_3@参考https://github.com/firebug/firebug/issues/7948,这个问题已经在firebug 2.0.13中解决了.
问题是,每当控制器的任何功能发生任何错误时,它不会显示特定错误,而是每次都会显示相同的通用错误,通过查看哪些错误无法确定. @H_301_3@这是我的控制台中显示的错误.
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)@H_301_3@这是错误的屏幕截图.
@H_301_3@PS:我正在使用RequireJS JavaScript库来延迟加载我的应用程序.我也在我的应用程序中使用ui.router. @H_301_3@更新1:
stackFrame.js不是我的应用程序的JavaScript文件. stackFrame.js的位置是:
chrome://firebug/content/debugger/stack/stackFrame.js@H_301_3@并且在任何控制器的应用程序中,它总是在同一行显示相同的错误,即使我在应用程序中遇到不同的错误. @H_301_3@更新2: @H_301_3@禁用Firebug工程.它显示了Firefox和Chrome的控制台中的具体错误.
我想补充说,当$http.post()的响应函数内有错误时,Firebug会显示这种错误.测试其他案例. @H_301_3@更新3: @H_301_3@参考https://github.com/firebug/firebug/issues/7948,这个问题已经在firebug 2.0.13中解决了.
解决方法
这显然是Firebug中的一个bug.其代码中的相关行是这一个:
@H_301_3@https://github.com/firebug/firebug/blob/a389cf78b310aedf33531520cc11f1e05051ecc3/extension/content/firebug/debugger/stack/stackFrame.js#L357
@H_301_3@如果你想要修正,你应该是file a bug report for Firebug.