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
meteor run You can use the application by pointing your web browser at localhost:3000. No Internet connection is required. This is the default command. Simply running meteor is the same as meteor run .
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With