如何调试角[$喷油器:modulerr]错误喷油器、错误、modulerr

2023-09-14 00:20:53 作者:酒伴孤独

我有一个不断增长的角度应用。不时,我把事情弄得一团糟,并得到类型的错误:

I have a growing angular application. From time to time, I mess things up and get an error of the type:

[$injector:modulerr] Failed to instantiate module App due to:

它往往是很困难的基础上,错误消息以找到该错误,尤其是如果有与各种控制器等多个文件

It is often very difficult to find the error based on the error message, especially if there are many files with various controllers etc.

有没有办法来调试运行在Chrome或Firefox这些错误?

Is there a way to debug these errors in either Chrome or Firefox ?

推荐答案

Minified AngularJS让我无法读取错误

...使用在发展中的unminified版本,使其更容易调试。

... Use the unminified version in development to make it easier to debug.