简体   繁体   English

在Webstorm中调试Node.js应用

[英]Debugging node.js app in webstorm

I have strange problem with node.js app. 我对node.js应用有奇怪的问题。 I can start it with grunt task, typing 我可以用咕unt声启动它,键入

grunt

in terminal, from project folder. 在终端中,从项目文件夹。 But when I try to start application from webstorm, I have an error 但是,当我尝试从webstorm启动应用程序时,出现错误

Running "nodemon:dev" (nodemon) task Fatal error: Error: not found: node Warning: Used --force, continuing. 运行“ nodemon:dev”(nodemon)任务致命错误:错误:未找到:节点警告:使用--force,继续。

 Running "watch" task Waiting... 

Webstorm configurations. Webstorm配置。

  1. Node interpreter: {path to node} 节点解释器:{节点的路径}
  2. Working directory: {path to project} 工作目录:{项目路径}
  3. JavaScript file: {path to grunt} JavaScript文件:{咕unt的路径}

I've had the exact same problem and just now updating to the latest version of Webstorm has solved the problem for me. 我遇到了完全相同的问题,现在更新到最新版本的Webstorm为我解决了这个问题。 You said you're on version 7.0 so see if the upgrade helps you as well. 您说您使用的是7.0版,因此请查看升级是否也对您有所帮助。

Have a look here for some more discussion. 在这里查看更多讨论。

I also had to make sure to set the remote paths in the JavaScript debug to avoid having extra windows pop up. 我还必须确保在JavaScript调试中设置远程路径,以避免弹出额外的窗口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM