应用程序由
pm2 start app.js
或者
pm2 start config.json
我想使用 node_inspector 在本地调试我的应用程序。我添加了debug
论点
pm2 start --node-args="--debug=7000" app.js
它工作正常,但如果我提供config.json
而不是脚本,app.js
我不知道如何传递有关调试的参数。下一个配置不起作用
{
"apps": [
{
"name": "myName",
"script": "app.js",
"args": "['--debug=7000']"
............
}
]
}
那么如何调试由 pm2 运行并使用配置的应用程序?