Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Debugging Meteor服务器端断点在cloud9中从未命中_Debugging_Meteor_Server Side_Cloud9 Ide - Fatal编程技术网

Debugging Meteor服务器端断点在cloud9中从未命中

Debugging Meteor服务器端断点在cloud9中从未命中,debugging,meteor,server-side,cloud9-ide,Debugging,Meteor,Server Side,Cloud9 Ide,我可以得到一个流星应用程序运行在使用内置流星运行配置。但调试器不会触及任何服务器端断点。我还尝试创建自己的运行配置,但也不起作用: { "cmd": [ "bash", "--login", "-c", "meteor ${debug? run --debug-port=15454} --port $IP:$PORT" ], "debugger": "v8", "debugport": 15454, "info": "Your code is

我可以得到一个流星应用程序运行在使用内置流星运行配置。但调试器不会触及任何服务器端断点。我还尝试创建自己的运行配置,但也不起作用:

{
  "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工作)。我注意到有一个时间问题。有时流星开始之前需要很长时间(分钟),因为它首先启动数据库等。我将调试器在放弃连接之前等待的时间更改为10分钟。是不是流星的启动时间超过了10分钟


还要注意,c9不支持客户端代码调试。它只支持服务器端代码。

Meteor比其他类似复杂度的节点应用程序(比如15秒vs 5秒)启动时间更长,但我没有看到延迟>1分钟。我发现,如果我在代码中添加
debugger
语句,它会命中,但不会命中我在IDE中设置的断点。我还注意到它在点击调试器时打开的文件位于
/app/server/..
,而不是我的原始文件
/simple todos/server/..
。这似乎是一个线索,好像我在IDE中设置断点的文件没有被调试器当作源文件处理。你能让它工作吗??