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

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

问题描述

我使用AngularJS在我的应用程序的角度,素材库一起。
问题是,每当控制器的任何功能发生任何错误,它不会显示具体的错误,而是显示了相同的一般性错误每次,通过观察,你不能确定哪里出了问题。

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's控制台特定错误。
我想补充一点,这种类型的错误显示在Firebug的时候有 $ http.post的响应函数中的错误()。进一步的测试案例。

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的错误。其code中的相关行是这一个:

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

<一个href=\"https://github.com/firebug/firebug/blob/a389cf78b310aedf33531520cc11f1e05051ecc3/extension/content/firebug/debugger/stack/stackFrame.js#L357\">https://github.com/firebug/firebug/blob/a389cf78b310aedf33531520cc11f1e05051ecc3/extension/content/firebug/debugger/stack/stackFrame.js#L357

如果您希望此获得固定的,你应该立案萤火虫的bug报告。

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

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

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