【发布时间】:2019-08-06 07:50:18
【问题描述】:
我正在远程服务器 (my-domain.com) 上运行 express 应用程序:
node --inspect=0.0.0.0:9229 ./server.js
在intellij idea 我已经设置debug configuration (Attach Node.js/chrome):
host: my-domain.com
port: 9229
当我点击debug 按钮时,我得到这个错误:
来自远程主机的无效响应。请检查选项中的 调试配置
我可以使用此设置在 localhost 上调试相同的应用程序:
host: localhost
port: 9229
为什么我无法附加到远程节点应用程序并对其进行调试? intellij idea 可以给我更多关于错误的信息吗?
【问题讨论】:
-
idea.log 中是否有任何消息(“帮助 | 显示登录...”)?您是否使用任何防病毒软件或防火墙/代理?
标签: node.js debugging intellij-idea remote-debugging