Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug Meteor Velocity Mocha tests

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?

like image 596
Tomas Romero Avatar asked Nov 21 '14 03:11

Tomas Romero


1 Answers

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

like image 75
gatolgaj Avatar answered Nov 19 '22 02:11

gatolgaj