I’ve just been through a dizzying number of SO and other posts about Meteor debugging.
I’m trying to debug some server-side code that sends push notifications (one day) to my Android device.
Breakpoints would make me ecstatic but even seeing console.log()s would be worth a minor celebration at this point.
Ideally I’d like to be in Chrome Development Tools. Second choice might be something like the youtube video I just watched for Webstorm (but I’m told Webstorm no longer works with Meteor). Third choice would be at least getting console.log() to some terminal window.
My environment:
Ubuntu 14.04 for local dev and on my Digital Ocean staging server
on server:
npm version
{ npm: ‘3.8.9’,
ares: ‘1.10.1-DEV’,
http_parser: ‘2.7.0’,
icu: ‘57.1’,
modules: ‘48’,
node: ‘6.2.0’,
openssl: ‘1.0.2h’,
uv: ‘1.9.1’,
v8: ‘5.0.71.47’,
zlib: ‘1.2.8’ }
Node Inspector v0.12.8
nvm 0.31.1
3.8.0-19-generic #30-Ubuntu SMP Wed May 1 16:35:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
I’m deploying with mupx.
I’ve tried “mupx stop”, then going to the server and running many variations on “node --debug main.js”.
At some point I hit this issue which seems to conclude that node-inspector “is not ready for primetime”. https://github.com/node-inspector/node-inspector/issues/873
It’s recommended in this thread to try devtool but it’s not at all clear to me that devtool can be used to debug my remote server.
https://mattdesl.svbtle.com/debugging-nodejs-in-chrome-devtools
Of course I’ve read the @joshowens post many times.
I read that Webstorm is good but I’ve read more recent posts that say that Webstorm doesn’t work since Meteor 1.2.
(btw, my preferred IDE is sublime but I’m willing to try anything. ANYTHING at this point).