Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor JS, running in a debugger?

I'm curious if anyone has a solution for running meteor in a debugger. I have some experience with running regular node in a debugger, have used JetBrains Webstorm for this, however it doesn't seem to support meteor (as far as I can tell). If anyone has a solution, would appreciate any information. It seems, eventually this will need to be possible for meteor to become a longterm viable platform.

like image 917
Rick Avatar asked Oct 08 '22 03:10

Rick


1 Answers

It looks like the meteor startup script does not support a debugging option at this point, but you can fix this yourself:

Open the meteor startup script in a text editor (use which meteor to find it)

Change the last line (add $NODE_DEBUG parameter):

exec "$DEV_BUNDLE/bin/node" $NODE_DEBUG "$METEOR" "$@"

Now you can launch meteor in debug mode like this:

NODE_DEBUG=--debug meteor

like image 78
w3dot0 Avatar answered Oct 13 '22 00:10

w3dot0