gpt4 book ai didi

node.js - Meteor npm 脚本的 WebStorm Debug模式

转载 作者:太空宇宙 更新时间:2023-11-03 22:08:17 24 4
gpt4 key购买 nike

在 WebStorm 中,如果我将运行配置添加为“Meteor”应用程序,则调试工作正常。

最近我们开始使用 NPM 脚本 npm start 来启动我们的应用程序。这帮助我们减少了向其他团队成员发送 WebStorm 运行配置的设置。

当我在 WebStorm 中以 Debug模式启动 NPM 脚本时,它不会到达断点。我想知道我应该在“运行配置”中进行某种更改,以便 WebStorm 知道它应该运行 Meteor 调试器。

这是我在 package.json 中的运行脚本

{

"scripts": {
"start": "MONGO_URL=mongodb://localhost/db meteor --settings private/settings.json",
},
}

最佳答案

meteor只能通过Meteor进行调试运行配置;无法通过 NPM 脚本进行调试。您可以在配置中指定环境变量并将设置传递给 Meteor

enter image description here

关于node.js - Meteor npm 脚本的 WebStorm Debug模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49934525/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com