9
我想用Velocity和Mocha调试我的测试,使用断点和REPL代替console.logs。调试流星速度摩卡测试
为了调试我的应用程序代码,我可以用NODE_OPTIONS='--debug'
标志启动我的Meteor应用程序,然后绑定调试器,如node debug localhost:5858
。这对镜像不起作用,尽管它的日志说debugger listening on port 5858
(主应用程序和镜像日志都这样说)。
我该如何调试?
嗯,我不知道主应用程序的调试器是在第一个踢,第二个在同一个端口没有拿起。 – 2014-11-22 03:47:08
我试着运行'NODE_OPTIONS =' - debug'meteor run --test',期望它仅通过启动镜像应用程序来运行测试,但它也启动主应用程序。我想知道当你只想运行测试时,是否有启动主应用程序的原因。 – 2014-11-22 18:43:30
查看velocity [issue#235](https://github.com/meteor-velocity/velocity/issues/235)和[PR#298](https://github.com/meteor-velocity/velocity/pull/ 298)。 – 2015-04-12 18:38:19