我可以在 Cloud9 IDE 中运行一个 meteor 应用程序使用内置的 Meteor 运行配置。但是调试器不会遇到任何服务器端断点。我也尝试创建自己的运行配置,但也不起作用:
{
"cmd": [
"bash",
"--login",
"-c",
"meteor ${debug? run --debug-port=15454} --port $IP:$PORT"
],
"debugger": "v8",
"debugport": 15454,
"info": "Your code is running at \\033[01;34m$url\\033[00m.\n\\033[01;31mImportant:\\033[00m use \\033[01;32mprocess.env.PORT\\033[00m as the port and \\033[01;32mprocess.env.IP\\033[00m as the host in your scripts!\n"
}
有人让调试器工作吗?
最佳答案
我一直在研究 meteor 调试问题(我为 C9 工作)。我注意到有一个时间问题。有时在meteor 启动之前需要很长时间(分钟),因为它首先启动数据库等。我将调试器在放弃连接之前等待的时间更改为 10 分钟。莫非 meteor 启动的时间超过了10分钟?
另请注意,c9 不支持客户端代码调试。它只支持服务器端代码。
关于debugging - meteor 服务器端断点从未在cloud9中命中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27651658/