使用gruntjs进行错误回溯

Error tracebacks with gruntjs

本文关键字:错误 回溯 gruntjs 使用      更新时间:2023-09-26

在运行grunt时遇到错误,我有时会得到这样的消息,没有关于的进一步信息,其中没有定义data变量,等等。

Running "render-site:dev" (render-site) task
Warning: data is not defined Use --force to continue.
Aborted due to warnings.

是否有一种方法可以显示回溯,甚至只是显示发生错误的行号?

找到了:

grunt --stack

.......