Moh*_*ani 10 javascript firebug angularjs angular-material
我在我的应用程序中使用AngularJS和angular-material库.问题是,每当控制器的任何功能发生任何错误时,它都不会显示特定的错误,而是每次显示相同的一般错误,通过查看哪些不能确定哪里出错.
这是我的控制台中显示的错误.
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)
Run Code Online (Sandbox Code Playgroud)
PS:我正在使用RequireJS JavaScript库来延迟加载我的应用程序.我也在我的应用程序中使用ui.router.
更新1: stackFrame.js不是我的应用程序的JavaScript文件.stackFrame.js的位置是:
chrome://firebug/content/debugger/stack/stackFrame.js
Run Code Online (Sandbox Code Playgroud)
并且它总是在我的应用程序中在任何控制器中的同一行上显示相同的错误,即使我在应用程序中遇到不同的错误.
更新2:
禁用Firebug工作.它显示了Firefox和Chrome控制台中的特定错误.我想补充一点,当响应函数内部出现错误时,Firebug中会显示此类错误$http.post().测试更多案例.
更新3:
参考https://github.com/firebug/firebug/issues/7948,此问题已在firebug 2.0.13中得到解决.
| 归档时间: |
|
| 查看次数: |
4982 次 |
| 最近记录: |