Debug Meteor Velocity Mocha tests

622 views Asked by At

I want to debug my test using Velocity and Mocha, using breakpoints and REPL instead of console.logs.

For debugging my app code I can start my Meteor app with the NODE_OPTIONS='--debug' flag, and then bind the debugger like node debug localhost:5858. This doesn't work for the mirror, although its log says debugger listening on port 5858 (both main app and mirror logs say that).

How can I debug it?

1

There are 1 answers

0
gatolgaj On

Use meteor debug instead of meteor run to start your meteor application. It will add the node inspector package to your running Meteor app so that you can debug it. Node inspector works by hooking into your running Meteor server