找到你要的答案

Q:Sails.js app debug within Webstorm takes way too much to start

Q:sails.js程序调试在Webstorm需要太多的开始

I am developing a Sails using Webstorm IDE for debugging. I have noticed that while adding more and more controllers, models, features, etc the app's load time increases exponentially while in debug mode. If the normal app takes like 1-2 seconds to start, in debug mode sometimes it passes 2 minutes, which leads to 'The hook xxx takes too much to load' (xxx could be 'orm', 'request', 'logger', etc) errors and a big hassle overall in identifying problems via debug.

Anyone had similar problems with Sails and Webstorm? I am developing both on Windows and Ubuntu, node version 0.12, Sails version 0.11.

我开发了一webstorm帆使用IDE调试。我注意到,虽然增加了越来越多的控制器,模型,功能等应用程序的加载时间成倍增加,而在调试模式。如果正常的应用程序需要1-2秒开始,在调试模式下有时经过2分钟,导致“钩XXX花费了太多的负荷”(XXX是“ORM”、“请求”、“记录”等)的错误和整体通过调试发现问题的一个大麻烦。

有人用帆和Webstorm类似的问题?我在Windows和Ubuntu的发展,节点0.12版本,0.11版本的帆。

answer1: 回答1:

Yes I had the same problem on Mac using Node 12, Webstorm 10 and Sails 11. This happened immediately after installing Node 12. Project previously started in about 7 seconds but under Node 12 would not start due to hook timeout. If I extended the hook time for orm it simply timed out on the next hook, in my case view. Reverting to Node 10.38 cured the problem.

是的我也有同样的问题在Mac使用节点12、Webstorm 10和帆11。这发生后立即安装节点12。项目在7秒以前启动,但在节点12下不会因为钩子超时而启动。如果我延长的时间简单的ORM钩超时下钩,在我的观点。恢复节点10.38治愈的问题。

node.js  sails.js  webstorm