AngularJS 不再在 Firebug 控制台中显示特定错误 [英] AngularJS doesn't show specific errors in the Firebug console anymore

查看:25
本文介绍了AngularJS 不再在 Firebug 控制台中显示特定错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用 AngularJS 和 angular-material 库.问题是,每当控制器的任何功能发生任何错误时,它都不会显示特定错误,而是每次都显示相同的一般错误,通过查看您无法确定出了什么问题.

I am using AngularJS along with the angular-material library in my application. The problem is, whenever any error occurs in any function of the controller, it doesn't show the specific error but instead shows the same generic error everytime, by looking at which you cannot determine what went wrong.

这是我的控制台中显示的错误.

Here is the error shown in my console.

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)

这是该错误的屏幕截图.

Here is the screenshot of that error.

PS:我使用 RequireJS JavaScript 库来延迟加载我的应用程序.我也在我的应用程序中使用 ui.router.

PS: I am using the RequireJS JavaScript library to lazy-load my application. I am also using ui.router in my application.

更新 1:stackFrame.js 不是我的应用程序的 JavaScript 文件.stackFrame.js 的位置是:

Update 1: stackFrame.js is not a JavaScript file of my application. The location of stackFrame.js is:

chrome://firebug/content/debugger/stack/stackFrame.js

它总是在我的应用程序中的任何控制器的同一行上显示相同的错误,即使我在应用程序中遇到不同的错误.

And it always shows the same error on the same line throughout my application in any controller, even if I face different errors in the application.

更新 2:

禁用 Firebug 有效.它显示了 Firefox 和 Chrome 控制台中的特定错误.我想补充一点,当 $http.post() 的响应函数中出现错误时,Firebug 中会显示此类错误.测试更多案例.

Disabling Firebug works. It shows the specific error in Firefox´ and Chrome´s console. I would like to add, that this type of error is shown in Firebug when there is an error inside the response function of $http.post(). Testing further cases.

更新 3:

参考https://github.com/firebug/firebug/issues/7948,这个问题已经在 firebug 2.0.13 中解决了.

With reference to https://github.com/firebug/firebug/issues/7948, this issue has been solved in firebug 2.0.13.

推荐答案

这显然是 Firebug 中的一个错误.其代码中的相关行是这一行:

This is obviously a bug in Firebug. The related line within its code is this one:

https://github.com/firebug/firebug/blob/a389cf78b310aedf33531520cc11f1e05051ecc3/extension/content/firebug/debugger/stack/stackFrame.js#L357

如果您希望解决此问题,您应该为 Firebug 提交错误报告.

If you want this to get fixed, you should file a bug report for Firebug.

这篇关于AngularJS 不再在 Firebug 控制台中显示特定错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆