How to debug server side code in a Meteor app
debugging, meteor, remote-debugging
Solution
So here is how I managed it for meteor 0.5.6
there is no need to tinker with the run.js anymore
install node-inspector https://github.com/dannycoates/node-inspector
create an environment variable `export NODE_OPTIONS='--debug'`
run `meteor` or `mrt` command. It should tell you something like debugger listening on port 5858
Once the debugger is listening, you can start node-inspector and point your browser to `Visit http://127.0.0.1:8080/debug?port=5858`
I had a lot of fun with it :-)
For meteor 1.2.x and onward, everything is packaged in. Simply run `meteor debug` and connect to the provided url
Problem
I have been struggling to debug the server side code in my app. For the client, the browser debugger in chrome or firefox work like a charm but it is more complicated for the server