2017-02-20 65 views
1

我希望能够使用VS Code调试Mocha测试。但是,如果我运行:在nativescript中调试Mocha测试

tns test -ios --debug-brk

我得到的错误信息:

You cannot use --watch and --debug-brk simultaneously. Remove one of the flags and try again.

我目前使用的是最新nativescript-CLI。

是否可以使用VS代码在NativeScript中调试Mocha测试?

回答

0

从NativeScript CLI 2.5.0版本开始,watch选项默认设置为true。它看起来像打破test命令中的--debug-brk选项。您可以通过将watch选项设置为false来绕过它。为了实现这一点,请执行: $ tns test ios --debug-brk --no-watch

+0

谢谢!它做了诡计。不幸的是,Nativescript检查器崩溃了2次,超过3次。我能够(非常)简单地调试测试。 – biziosan