作者:lily--妹妹 | 来源:互联网 | 2023-05-18 00:08
Ivestartedmyapplicationonmyserverwithpm2:我用pm2在我的服务器上启动了我的应用程序:pm2startpathlibstart
I've started my application on my server with pm2:
我用pm2在我的服务器上启动了我的应用程序:
pm2 start /path/lib/start-server.js --name="cdl-debug" -- --inspect
Which would be equivalent to node /path/lib/start-server.js --inspect
这相当于节点/path/lib/start-server.js --inspect
The application starts and runs, although I see no notice in the logs about any debugging like explained here
应用程序启动并运行,虽然我在日志中没有注意到任何调试,如此处所述
I've opened up port 9229 in the firewall and setup my WebStorm debug config with Attach to Node.js/Chrome
like so:
我在防火墙中打开了端口9229并使用Attach to Node.js / Chrome设置了我的WebStorm调试配置,如下所示:
Then when I run the debugger it tries to connect for a while and finally fails with the message: Connection timed out. No further information.
然后,当我运行调试器时,它尝试连接一段时间,最后失败并显示消息:Connection timed out。没有更多信息。
Is there something else I should do? The WebStorm documentation doesn't mention much about the required setup on the server.
还有什么我应该做的吗? WebStorm文档没有提到服务器上所需的设置。
1 个解决方案