尝试通过Mocha调试程序(使用--debug-brk)可调试mocha本身 [英] Trying to debug program through mocha (using --debug-brk) debugs mocha itself

查看:77
本文介绍了尝试通过Mocha调试程序(使用--debug-brk)可调试mocha本身的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了这个开源项目,并且运行了mocha测试,但是我想调试测试所调用的功能,但是当我尝试调试(使用mocha --debug-brk)时,我看到调试在mocha代码本身中..

I installed this open source projects and mocha tests run but I want to debug the functions called by the tests but when I try to debug (using mocha --debug-brk), i see that debug is in the mocha code itself..

我如何做到这一点?

推荐答案

我通过使用

I get past this same issue by using node-inspector to add my real breakpoint, and just click pause/continue, which will stop at the real breakpoint then.

这篇关于尝试通过Mocha调试程序(使用--debug-brk)可调试mocha本身的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆